note 1773 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 00:35:12 +0000
Subject: note 1773 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20033@lists.php.net to get a copy of this message
Use the zero-filled month and day to store the current year,month,day to a Mysql table. Just in case somebody makes the same stupid mistake that I did: make SURE to use the zero-fill versions (d,m) and not the other ones (j,n). I accidentally used j for day, performed a checkdate (which passed), and stored the date for October First, 1999 as "1999-10-1", which resolved to "000-00-00" once it hit the database.

« previous php.notes (#20033) next »