[Zope] How do I test a date to be valid?
Jeff Nielsen
Jeff at UgoFast.com
Mon Sep 22 11:22:20 EDT 2003
I was working on that. How do I catch the exception before it becomes an
error? I saw something in the various docs about DateTime.DateTimeError,
but I can't figure out how to implement it.
Jeff Nielsen
http://www.UgoFast.com
-----Original Message-----
From: Andreas Jung [mailto:andreas at andreas-jung.com]
Sent: Sunday, September 21, 2003 11:00 PM
To: Jeff Nielsen; zope at zope.org
Subject: Re: [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 at 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
>
More information about the Zope
mailing list