[Phpwm] strtotime() date format

David Goodwin david at codepoets.co.uk
Wed Sep 19 12:44:37 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Edwards wrote:
> What's an elegant way of getting around the fact that strtotime()
> expects US English dates (mm/dd/yy) instead of dd/mm/yy? Say for
> instance if I wanted to do something easy, like work out the number of
> days between the strings '13/01/07' and '01/02/07'?
> 
> Explode the dates on slashes and feed them in the wrong way round?
> 

Vote for :  http://bugs.php.net/bug.php?id=42698

!!

David.
- --
David Goodwin

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG8QuF/ISo3RF5V6YRAi/2AJ0ZtYJLmApJKk4EMio+w7uetx7N8gCcD7lo
iMVIt9YYIfup+9SrILbLFSc=
=BvWr
-----END PGP SIGNATURE-----



More information about the Phpwm mailing list