Reply to Re: [PHP] help formatting a mysql datetime variable

Your name:

Reply:


Posted by Richard Lynch on 04/29/05 21:44

On Fri, April 29, 2005 7:38 am, Bosky, Dave said:
> 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;
> ----------------------

http://php.net/date may help you.

You should also consider using MySQL's date_format function.

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация