Re: Date formatting question

From: Date: Thu, 09 Apr 2009 02:05:21 +0000
Subject: Re: Date formatting question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46106@lists.php.net to get a copy of this message
Jack Lauman wrote:
I need to reformat the output of the 'dates' field from '2009-04-08' to 'Wed. Apr. 8th'. Any help would be appreciated.
You can either do it using mysql date formats (see http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-format) or something like date('...', strtotime($result->date)); See http://php.net/date and http://php.net/strtotime -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#46106) next »