|
Posted by Captain Paralytic on June 26, 2008, 10:58 am
Please log in for more thread options
> I have a string in a existing php script which is in the form "dd/mm/yyyy"
> and I need to convert it into a suitable format for mysql which is
> "yyyy-mm-dd" Is there a neat way of doing this in php ?
Do it in MySQL instead. Look at the DATE_FORMAT function in the MySQL
manual:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-format
Furher questions of this sort should be in comp.databases.mysql
|