How do I test a date to be valid?
22 Sep
2003
22 Sep
'03
5:54 a.m.
When a user inputs a date from a form, how can I test it to be valid? I'd want 01/15/2003 to test as valid, but 02/31/2003 to test as false. Jeff Nielsen http://www.UgoFast.com
22 Sep
22 Sep
5:59 a.m.
New subject: [Zope] How do I test a date to be valid?
pass it to DateTime(). It should raise an exception for wrong dates. -aj --On Sonntag, 21. September 2003 22:54 Uhr -0700 Jeff Nielsen <Jeff@UgoFast.com> wrote:
When a user inputs a date from a form, how can I test it to be valid? I'd want 01/15/2003 to test as valid, but 02/31/2003 to test as false.
Jeff Nielsen http://www.UgoFast.com
25 Sep
25 Sep
12:46 p.m.
New subject: [Zope] How do I test a date to be valid?
Andreas Jung wrote:
pass it to DateTime(). It should raise an exception for wrong dates.
Yeah, except that uses broken-american-date format by default. How can you make it use sane-rest-of-world date format? Chris
8229
Age (days ago)
8232
Last active (days ago)
2 comments
3 participants
participants (3)
-
Andreas Jung -
Chris Withers -
Jeff Nielsen