note 23830 modified in function.date by philip
| From: | philip@php.net | Date: | Sat, 02 Aug 2003 15:55:37 +0000 |
| Subject: | note 23830 modified in function.date by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53219@lists.php.net to get a copy of this message | ||
if you are using MySQL timestamp format, you should try this when seleceting a line:
SELECT *,DATE_FORMAT(timestamp, '%d-%M-%y %H:%i') AS time FROM table
as you select, you will be added another field under the name time with the wanted format.
for more info about the format, fo here:
http://www.mysql.com/doc/en/Date_and_time_functions.html
--was--
if you are using MySQL timestamp format, you should try this when seleceting a line:
SELECT *,DATE_FORMAT(timestamp, '%d-%M-%y %H:%i') AS time FROM table
as you select, you will be added another field under the name time with the wanted format.
for more info about the format, fo here:
http://www.mysql.com/doc/D/a/Date_and_time_functions.htm
http://www.php.net/manual/en/function.date.php