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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php