how to test string to see if it is a date or time?
| From: | DomIntCom | Date: | Sat, 22 Mar 2003 04:18:10 +0000 |
| Subject: | how to test string to see if it is a date or time? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140662@lists.php.net to get a copy of this message | ||
I have a form that is passing a date variable, and a time variable. I will
be using these for a query, and will use the date function to do some
formatting on it.
now, I would like to idiot proof it a bit, but can't find any functions for
this (hoping something similar to is_numeric exists).
does anybody have any commands, or some code that would allow me to make
sure a variable is a valid date or time.
thanks,
Jeff