note 38122 added to function.strtotime

From: Date: Tue, 09 Dec 2003 09:32:35 +0000
Subject: note 38122 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-61676@lists.php.net to get a copy of this message
hmm strtotime can't handle 9/12/2003 where the format is d/m/y I guess because it has no real way of guessing which is the right way around.. So here is a little routine to flip things into US date format (and vice versa) $date=explode("/",trim($records[2])); $posted=strtotime ($date[1]."/".$date[0]."/".$date[2]); ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38122 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38122&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38122&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61676) next »