Reply to Re: Dates between Mysql and PHP

Your name:

Reply:


Posted by cosmoKen on 04/12/06 18:28

Yes, dates in MySQL are stored in the format YYYY-MM-DD
To get a readable format, you have to convert it.

The simplest way is to use :
echo date('d/m/Y H:i', strtotime($row['DATE']));

But you can use the ereg way to be sure of your result. The date
conversion is one of the manual examples of the function ereg
http://www.php.net/ereg

[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

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