Check if value is a date

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Check if value is a date

Post by GeXus »

Is there a way in php to check if a variable is a date? by imputing a time stamp?
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: Check if value is a date

Post 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?
Post Reply