Re: date comparison

From: Date: Mon, 29 Apr 2002 22:58:46 +0000
Subject: Re: date comparison
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95290@lists.php.net to get a copy of this message
In my experience, it's best to keep everything is unix time stamp format -- soooooo easy for comparisons, and the function to convert it out to YYYY-MM-DD took me 45 seconds :) Justin French on 30/04/02 6:29 AM, Richard Fox (rfox@sbsii.com) wrote: > 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 > >

« previous php.general (#95290) next »