From: | "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com> |
---|---|
To: | Kevin Heflin <kheflin(at)shreve(dot)net>, PostgreSQL-development <hackers(at)hub(dot)org> |
Cc: | Brett McCormick <brett(at)work(dot)chicken(dot)org>, pgsql-hackers(at)hub(dot)org, PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org> |
Subject: | RE: [GENERAL] Re: [HACKERS] custom types and optimization |
Date: | 1998-06-02 16:37:38 |
Message-ID: | F10BB1FAF801D111829B0060971D839F2B71F4@cpsmail |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general 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(at)shreve(dot)net | Shreveport, LA 71101 | http://www.shreve.net
> --------------------------------------------------------------------
>
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Lynch | 1998-06-02 19:22:11 | Re: [GENERAL] Re: [HACKERS] custom types and optimization |
Previous Message | David Hartwig | 1998-06-02 15:42:00 | Re: [GENERAL] Loading PDF fiel held on Databases |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-06-02 17:08:27 | Re: [HACKERS] An easier way to upgrade (Was: Lots 'o patches) |
Previous Message | The Hermit Hacker | 1998-06-02 16:34:40 | Re: [HACKERS] Re: [INTERFACES] ODBC is slow with M$-Access Report |