help formatting a mysql datetime variable
| From: | Bosky, Dave | Date: | Fri, 29 Apr 2005 14:38:17 +0000 |
| Subject: | help formatting a mysql datetime variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-214208@lists.php.net to get a copy of this message | ||
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.