Skip site navigation (1) Skip section navigation (2)

RE: [GENERAL] Re: [HACKERS] custom types and optimization

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 (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-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
> --------------------------------------------------------------------
> 

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-06-02 17:08:27
Subject: Re: [HACKERS] An easier way to upgrade (Was: Lots 'o patches)
Previous:From: The Hermit HackerDate: 1998-06-02 16:34:40
Subject: Re: [HACKERS] Re: [INTERFACES] ODBC is slow with M$-Access Report

pgsql-general by date

Next:From: Richard LynchDate: 1998-06-02 19:22:11
Subject: Re: [GENERAL] Re: [HACKERS] custom types and optimization
Previous:From: David HartwigDate: 1998-06-02 15:42:00
Subject: Re: [GENERAL] Loading PDF fiel held on Databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group