On 16/11/2004, at 6:29 AM, Robert Sossomon wrote:
I have a date in format YY-MM-DD in a MySQL table. I need to pull it
back to display it in either format: MM-DD-YY or Month Day, Year
format.
Do it in PHP, not in the query, IMHO.
?
$date = 04-11-28;
list($year,$month,$day) = explode('-',$date);
From: Robert Sossomon [mailto:[EMAIL PROTECTED]
I have a date in format YY-MM-DD in a MySQL table. I need to
pull it back to display it in either format: MM-DD-YY or
Month Day, Year format.
I can't figure out how to write the query to do it, and am
not sure how to make PHP just parse
On Mon, 15 Nov 2004 14:29:59 -0500, Robert Sossomon
[EMAIL PROTECTED] wrote:
I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to
display it in either format: MM-DD-YY or Month Day, Year format.
I can't figure out how to write the query to do it, and am not sure how
I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to
display it in either format: MM-DD-YY or Month Day, Year format.
I can't figure out how to write the query to do it, and am not sure how to make
PHP just parse the one given and dump it back out in the way I need it.
4 matches
Mail list logo