Click to See Complete Forum and Search --> : If stmt for dates


esm
08-30-2003, 07:58 PM
well, I was never very good with the following:

I want to return TRUE if the current date is between two dates, otherwise FALSE.

something like


if ( ($cat==$the_cat or $no_cat==1) && $start_date <= $to_day <= $last_date )

pyro
09-01-2003, 09:54 PM
With a little tweaking, the script I wrote for this thread should work: http://forums.webdeveloper.com/showthread.php?s=&threadid=10054