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:[EMAIL PROTECTED]] 
Sent: Saturday, August 18, 2001 4:06 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to