note 16670 added to function.getdate

From: Date: Thu, 08 Nov 2001 15:53:35 +0000
Subject: note 16670 added to function.getdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-20605@lists.php.net to get a copy of this message
Good notes y'all, however this still doesn't solve my problem. I have an mysql field which holds the date in default mysql format of '0000-00-00'. Which function(s) can I use to echo todays date in this format, ie. YYYY-MM-DD. Plus it must also have zero values i.e 2001-11-07 and not 2001-11-7. I don't want to do it in javascript etc. but in my php file. Any ideas appreciated. -- http://www.php.net/manual/en/function.getdate.php http://master.php.net/manage/user-notes.php?action=edit+16670 http://master.php.net/manage/user-notes.php?action=delete+16670 http://master.php.net/manage/user-notes.php?action=reject+16670

« previous php.notes (#20605) next »