[Phpwm] strtotime() date format

David Goodwin david at codepoets.co.uk
Tue Sep 18 15:07:01 BST 2007


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


> Format the string using strftime() perhaps?

strftime() and strtotime() don't allow you to go from a date in
dd/mm/yyyy format to an integer... which you (ideally) need in order to
perform calculations on it (or just to get it out in a different format
like yyyy/mm/dd).

In the UK, most people want to see dates in dd/mm/yyyy format.
Unfortunately the stupid Americans try and force mm/dd/yyyy on us.

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

iD8DBQFG79tr/ISo3RF5V6YRAiv5AKCIJolBR8FVdZHLnx/tHgnqg78y4wCg/LY+
Qk78IEWKXCde0g46v/GZhrs=
=YfWG
-----END PGP SIGNATURE-----



More information about the Phpwm mailing list