note 16948 deleted from function.time by jimw

From: Date: Sat, 08 Dec 2001 23:53:20 +0000
Subject: note 16948 deleted from function.time by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22385@lists.php.net to get a copy of this message
This seems to work very well for converting a special date-string into timestamp:<br> $date_string = date ("m/d/Y H:i:s"); $date_string = strtotime ($date_string); echo $date_string.""; echo time();<br> You actually get the same value. You only have to use the format "mm/dd/yyyy hh:mm:ss".

« previous php.notes (#22385) next »