On 2001-02-04 at 21:00, Jan Erik Moström <[EMAIL PROTECTED]> wrote:

> I've tried to find some code that would validate a date string but I haven't
> found any module or some other code that does this. However, this must be such
a
> common task that someone, somewhere has to put together some tested code for
> this ... or is it so obvious how to do it that I'm missing it?
> 
> What I'm looking for is something that would take a date string (in my case
> 2001-02-04) and return true/false depending if it's valid or not:
> 
> if( dateIsValid($year,$month,$date) ) ...

Hehe ... when I connected to send this email I took the chance to browse around
and managed to find the Date::Calc module where I could find:

  check_date
      if (check_date($year,$month,$day))

So it seems like my problem is solved 8-)

            jem
--
Jan Erik Moström                             mailto:[EMAIL PROTECTED]
Free Elektron                      http://www.mostrom.pp.se/folk/jem/

Reply via email to