RE: [PHP-DB] format dates from a database

From: Date: Sun, 19 Aug 2001 07:46:43 +0000
Subject: RE: [PHP-DB] format dates from a database
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11514@lists.php.net to get a copy of this message
strftime("format", strtotime($database_time_string)); "format" is defined in the page for strftime(). strtotime() converts the MySQL date into a UNIX timestamp. -----Original Message----- From: Caleb Walker [mailto:cwalker@cwalk.org] Sent: Saturday, August 18, 2001 4:06 PM To: php-db@lists.php.net Subject: [PHP-DB] format dates from a database I am wondering if there is an easier way to format dates that come out of a database. My database stores my date in the format- "YYYY-MM-DD". I know that I can take this and rearrange it with some string manipulation but is there any other easier way to do that say like making it say Sep. 09, 2001 instead of 2001-09-09 without using ereg()? Thanks for your help -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#11514) next »