Re: [PHP] Date Conversions?

2004-11-16 Thread Justin French
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);

RE: [PHP] Date Conversions?

2004-11-15 Thread Mike Johnson
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

Re: [PHP] Date Conversions?

2004-11-15 Thread Greg Donald
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

[PHP] Date Conversions?

2004-11-15 Thread Robert Sossomon
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.