Re: checking user input of MM-DD-YYYY
| From: | Eric Butera | Date: | Tue, 15 Jan 2008 15:47:35 +0000 |
| Subject: | Re: checking user input of MM-DD-YYYY | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267298@lists.php.net to get a copy of this message | ||
On Jan 15, 2008 9:27 AM, Adam Williams <awilliam@mdah.state.ms.us> 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) ?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
strtotime() might be an option too.