Page 1 of 1

Check if value is a date

Posted: Wed Apr 16, 2008 3:37 pm
by GeXus
Is there a way in php to check if a variable is a date? by imputing a time stamp?

Re: Check if value is a date

Posted: Wed Apr 16, 2008 4:12 pm
by flying_circus
GeXus wrote:Is there a way in php to check if a variable is a date? by imputing a time stamp?
nothing comes to mind, but cant you just check it for being an integer and 32 bits in length?