Making sure a date field is entered.
| From: | Tom Peck | Date: | Wed, 09 Aug 2000 01:39:14 +0000 |
| Subject: | Making sure a date field is entered. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1649@lists.php.net to get a copy of this message | ||
Hello All
Is there a PHP function which can make sure a string is a date? I have a
form where a date is entered in the format: "Saturday 23 August". The form
gets passed onto another page which makes sure all the fields are correct -
but I'm stumped as how to make sure that this date has been put in properly.
It needs to be inserted properly so that I can run a database query getting
all the data from a database, ordered by Date...
Thanks for any help.
Tom