MySQL Forums
Forum List  »  PHP

Re: timestamp formating in php webpage
Posted by: AsBold AsLove
Date: April 08, 2009 06:27PM

thanks Peter.

i used it in the MySQL select as i couldnt seem to get the PHP version to work.

example:

SELECT name, comment, DATE_FORMAT(created, '%D %M %Y | %H:%i:%s') FROM comments

i found good instuctions on:
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format

Options: ReplyQuote


Subject
Written By
Posted
Re: timestamp formating in php webpage
April 08, 2009 06:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.