help formatting a mysql datetime variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to get a mysql datetime variable called $cdate formatted so
it will print:

Thursday, April 28, 2005 at 8:00:00 PM Eastern Time

I tried the following but it's not perfect.

----------------------
$newDate = date('I, F d, Y at g:i:s A T', $cdate);
echo $newDate;
----------------------


Thanks,

Dave

 

 



HTC Disclaimer:  The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.  Thank you.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux