Home  |  Linux  | Mysql  | PHP  | XML
From:Richard Heyes Date:Fri May  9 06:16:43 2008
Subject:Re: quick question
> 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 

strtotime() returns a unix timestamp (ie number of seconds since 
1970ish. Nothing to do with the date object.

-- 
Richard Heyes

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+
Navigate in group php.general at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants