[Zope] Validating a Date

Dennis Allison allison@sumeru.stanford.EDU
Fri, 28 Feb 2003 06:04:52 -0800 (PST)


On 28 Feb 2003, Edward Muller wrote:

> Does anyone know of a good module/product/hack that I can feed a date to
> and it will let me know if it's valid or not?
> 
> It should check leap years ... end days of the month and the like...
> 
	Zope's DateTime() should do the job for you.  It throws an
	exception for bad dates.