Re: [PHP-WIN] Date Formatting

2004-09-25 Thread JESE
Trevor: I prefer date( '(T) d-M-y h:ia +Z"' ); Regards. --- José Enrique http://jese.alcorce.org --- "Trevor Gryffyn" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] I know a lot of people will recommend using strtotime() to convert it to a unix timestamp, then use

RE: [PHP-WIN] Date Formatting

2004-09-22 Thread Gryffyn, Trevor
I know a lot of people will recommend using strtotime() to convert it to a unix timestamp, then use date() to format that: Date("m/d/Y",strtotime("Sep 12 2004 2:16AM")) That may work.. I have an inherent distrust of functions that use too much logic that isn't apparent to me, so I don't use str

RE: [PHP-WIN] Date Formatting

2004-09-22 Thread Asendorf, John
You are looking for the strtotime() function. $original_date = "Sep 12 2004 2:16AM"; $reformat = date ( "m/d/Y" , strtotime ($original_date) ); echo $reformat; John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 9:13 AM To: [EMAI

RE: [PHP-WIN] Date Formatting

2004-09-22 Thread Asendorf, John
You are looking for the strtotime function... $original_date = "Sep 12 2004 2:16AM"; $reformat = date ( "m/d/Y" , strtotime ($original_date) ); echo $reformat; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 9:13 AM To: [EMAIL