Reply to Re: [PHP] convert date format-SOLVED

Your name:

Reply:


Posted by Chris Ramsay on 03/24/05 13:03

Angelo,

slightly OT , but as a point of interest perhaps, $row['date'] seemed
to indicate that your date comes out of a DB - you can date format
stuff with sql too - I find that useful sometimes...

With MySQL for example, if your date field is called 'myDate' you can
do the following in the query:

SELECT ... DATE_FORMAT(myDate, %d %b %Y) AS date ,....FROM.....

which formats $row['date'] as '25 mar 2005'...

rgds

chris

[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

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