How to find if a date is a valid date, and not greater than year 2038?

Posted by user187580 on Stack Overflow See other posts from Stack Overflow or by user187580
Published on 2010-04-30T15:06:20Z Indexed on 2010/04/30 15:07 UTC
Read the original article Hit count: 111

Filed under:
|

Hello,

I have a site where users provide some dates, but if they enter year like 12 april 2099, then the I get date in the past (1969). How do I check it and apply a default max safe date?

thank you.

© Stack Overflow or respective owner

Related posts about php

Related posts about date