You are here: Re: Timestamp format « PHP SQL « IT news, forums, messages
Re: Timestamp format

Posted by Gregory Nickoloff on 05/12/07 21:18

....what about date(); and/or time(); functions to format the information?
Much, much, much easier to make it look how you want than to tear the srting
apart and re-assemble it for just the sake of appearance.

Maybe something like this: date("l, F jS, Y",time($result['timestamp']))
....or whatever.
If I remember correctly, this will take "2000-01-01 00:00:00" and spit out
something along
the lines of: "Tuesday, January 1st, 2000" (or similar). Get the specifics
from php manual.

 

Navigation:

[Reply to this 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

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