[Phpwm] strtotime() date format
alan at dunns.co.uk
Wed Sep 19 13:42:57 BST 2007
I agree with the thread saying tie down the input format so you don't
have to deal with strange input. We use a java dynamic calendar which
pops up a calendar page and allows the user to select a date - try
David Goodwin wrote:
> -----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 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
> -----END PGP SIGNATURE-----
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
This document originates from within Dunns Imaging Group Limited.
This message, together with any associated files, is intended only for
the use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient of
this communication you are hereby notified that any dissemination,
copying or distribution of this message, or of any files associated with
this message, is strictly prohibited.
If you have received this message in error, please notify us at once.
Dunns Imaging Group Ltd.
Registered Office: Chester Road Cradley Heath West Midlands B64 6AA.
Tel: 01384 564770
Registered in England 598527.
More information about the Phpwm