Re: [PHP] Evaluating server date ranges?

2002-08-12 Thread Bogdan Stancescu
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

Re: [PHP] Evaluating server date ranges?

2002-08-12 Thread James Green
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 bou