On Jan 15, 2008 9:30 AM, Per Jessen <[EMAIL PROTECTED]> wrote:

> Adam Williams wrote:
>
> > I'm having users enter dates in MM-DD-YYYY format.  is there a way to
> > check if what they have entered is invalid (like if they enter
> > 1-15-2008 instead of 01-15-2008) ?
>
> A regular expression perhaps?


you might also experiment w/ the date_parse() function.
http://us3.php.net/manual/en/function.date-parse.php

-nathan

Reply via email to