note 7432 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:40:25 +0000
Subject: note 7432 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20047@lists.php.net to get a copy of this message
I've seen some people use PHP to format a date which was retrieved from a MySQL-database. Why? Just query the db like this: "SELECT DATE_FORMAT(thefield, '%d-%m-%Y') FROM thetable". The date is returned formatted. Check http://mysql.com/Manual_chapter/manual_Reference.html#Date_and_time_functions for more info.

« previous php.notes (#20047) next »