Re: How to validate this date: 2002-02-31
| From: | Jason Wong | Date: | Tue, 05 Mar 2002 09:34:06 +0000 |
| Subject: | Re: How to validate this date: 2002-02-31 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87247@lists.php.net to get a copy of this message | ||
On Tuesday 05 March 2002 17:27, Andy wrote:
> Hi there,
>
> I am still lacking of one error the user can provide:
>
> Desired format: yyyy.mm.dd
>
> Asuming he enters a date: 2002-02-31 (There is no Feb 31)
>
> Is there a function which check is the date is ok?
Try checkdate()
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
If any man wishes to be humbled and mortified, let him become president
of Harvard.
-- Edward Holyoke
*/