note 99149 modified in function.strtotime by danbrown

From: Date: Fri, 30 Jul 2010 13:52:30 +0000
Subject: note 99149 modified in function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171228@lists.php.net to get a copy of this message
UK dates (eg. 27/05/1990) won't work with strotime, even with timezone properly set. However, if you just replace "/" with "-" it will work fine. <?php $timestamp = strtotime(str_replace('/', '-', '27/05/1990')); ?> --was-- UK dates (eg. 27/05/1990) won't work with strotime, even with timezone properly set. However, if you just replace "/" with "-" it will work fine. <?php $timestamp = strtotime(str_replace('/', '-', '27/05/1990'); ?> http://php.net/manual/en/function.strtotime.php

« previous php.notes (#171228) next »