Re: Way to test if variable contains valid date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 2, 2012 at 2:54 PM, Ron Piggott
<ron.piggott@xxxxxxxxxxxxxxxxxx> wrote:

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?

   You may want to check out checkdate():

       http://php.net/checkdate

--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/


Hi Daniel

I want to thank you, Daniel, for this help. - I was looking for an "isarray" type function

www.TheVerseOfTheDay.info
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux