Re: Evaluating server date ranges?

From: Date: Tue, 13 Aug 2002 01:51:41 +0000
Subject: Re: Evaluating server date ranges?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-112232@lists.php.net to get a copy of this message
If you store the date as a database native timestamp you might want to consider using native database functions in order to reduce CPU time - otherwise Mr. Green's solution is the typical one indeed. Bogdan James Green wrote:
On Mon, 2002-08-12 at 10:41, Joe in Minneapolis wrote:
What's the best way to evaluate the server date to see if it's within a specified date range?
Hm I'd [gm]mktime() both boundary dates, then turn all three dates into unix timestamps and check the server date is within the two integer boundaries. http://www.php.net/manual/en/function.gmmktime.php James


« previous php.general (#112232) next »