You could explode it using the '-' character.. And then compare the first
element to 2038.. If it's equal to our greater than, then you can compare
the month, and so forth..


"The most beautiful thing we can experience is the mysterious.  It is the
source of all true art and all science.  He to whom this emotion is a
stranger, who can no longer pause to wonder and stand rapt in awe, is as
good as dead:  his eyes are closed." - Albert Einstein

> From: "Richard Fox" <[EMAIL PROTECTED]>
> Reply-To: "Richard Fox" <[EMAIL PROTECTED]>
> Date: Mon, 29 Apr 2002 16:29:14 -0400
> Subject: [PHP] date comparison
> I have a date string, let's call it 'date a' in the format "2020-10-16"
> which I want to compare to the UNIX_TIMESTAMP overflow limit ("2038-01-18").
> Obviously I can't convert date 'a' to a timestamp because it may be too
> large. How can I make this comparision without converting it to a timestamp?
> Thanks,
> Rich
> -- 
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to