Way to test if variable contains valid date
| From: | Ron Piggott | Date: | Mon, 02 Jul 2012 18:54:33 +0000 |
| Subject: | Way to test if variable contains valid date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-318369@lists.php.net to get a copy of this message | ||
Is there a way to test a variable contains a valid date
- 4 digits for the year
- 2 digits for the month (including leading 0)
- 2 digits for the day (including leading 0)
OR
- a function?
Ron
Ron Piggott
www.TheVerseOfTheDay.info