note 11377 modified in Date and Time functions by ronabop

From: Date: Sat, 10 Mar 2001 21:56:19 +0000
Subject: note 11377 modified in Date and Time functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12190@lists.php.net to get a copy of this message
To use dates and times in ODBC-compliant databases (including MySQL), you can use the timestamp format: {ts 'yyyy-mm-dd hh:mm:ss'}. {ts '1899-12-30 00:00:00'} is the earliest date and time that can be inserted into a database using this format. This is perhaps the most portable and supported syntax out there by most databases (however, a good database will support several methods for date/time objects). http://www.php.net/manual/date-and-time-functions.php

« previous php.notes (#12190) next »