RE: [GENERAL] Re: [HACKERS] custom types and optimization - Mailing list pgsql-hackers

From Jackson, DeJuan
Subject RE: [GENERAL] Re: [HACKERS] custom types and optimization
Date
Msg-id F10BB1FAF801D111829B0060971D839F2B71F4@cpsmail
Whole thread Raw
List pgsql-hackers
> The only problem I haven't been able to fix to date is calling "Dates"
> from a database and displaying them like "Sunday May 31, 1998" instead
> "05-31-1998"
>
> Currently using PHP2.x not PHP3 yet...
>
> Kevin
>
try:
$mydate = '05-31-1998';
$mon = strtok($mydate, '-');
$day = strtok('-');
$year = strtok('-');
echo date('l F d, Y', mktime(0, 0, 0, $mon, $day, $year));



> --------------------------------------------------------------------
> Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
> VP/Mac Tech           | 333 Texas St #619    | FAX:318.221.6612
> kheflin@shreve.net    | Shreveport, LA 71101 | http://www.shreve.net
> --------------------------------------------------------------------
>

pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Re: [INTERFACES] ODBC is slow with M$-Access Report
Next
From: Hannu Krosing
Date:
Subject: Re: [INTERFACES] ODBC is slow with M$-Access Report