Posted by Anthony Smith on 01/07/08 21:39
So, after doing some research I finally figured that php chokes on
dates past year 2525. In this web service that I use they often use
2525-05-31 as the expiration date. I want to determine how I can
convert this in a format to compare it with other dates.
Before I was trying this:
if (strtotime($territory->expirationDate) < strtotime("2008-01-01")){
/do something
}
but since $territory->expirationDate really equals 2525-05-31 it was
not working...
What is a nice clean way to solve this problem?
Navigation:
[Reply to this message]
|