Re: quick question

From: Date: Fri, 09 May 2008 13:15:52 +0000
Subject: Re: quick question
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-274067@lists.php.net to get a copy of this message
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it didn't
If you're sure that's the format of the date, this will do it... list($day, $month, $year) = explode('/', $thedate); $thetimestamp = mktime(0, 0, 0, $month, $day, $year); -Stut -- http://stut.net/

« previous php.general (#274067) next »