note 17825 deleted from function.date by jimw

From: Date: Wed, 02 Jan 2002 01:47:46 +0000
Subject: note 17825 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24112@lists.php.net to get a copy of this message
Hi, I also have a belgian website and the timesettings I used (for example in my guestbook) are: $date = gmdate('d/m/Y'); print("$date"); this returns a date of format: 27/12/2001. But I use it in combination with a MySQL database so when I insert a date in the db I must use gmdate('Y/m/d'), as this is the format for a MySQL date field. To get the date from the database back to the browser in the correct form I use the date_format([date], [format]) function of MySQL.

« previous php.notes (#24112) next »