note 56834 deleted from function.strftime by derick

From: Date: Sat, 04 Nov 2006 10:41:56 +0000
Subject: note 56834 deleted from function.strftime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119377@lists.php.net to get a copy of this message
Note Submitter: phisys ¬at¬ netscape ¬dot¬ net ---- It's easy to get the current date in ISO format (YYYY-MM-DD)to insert into a date field in a database. <? $ISOdate = strftime( "%Y-%m-%d", time() ); ?> for other dates, better use: <? $ISOdate = sprintf( "%04d-%02d-%02d", $year, $month, $day ); ?>

« previous php.notes (#119377) next »