in reply to Compare of array
It also has a RECIPES section, with the very first example being comparing two dates. I think you want:
or, being perhaps a little more efficient, outside your formatting loops, say:if (Delta_Days(Today(0), $year, $month, $day) == 0)
and then,$today_in_days = Date_to_Days(Today(0));
Use Today(1) instead to use universal time instead of your server's local time to determine today's date.if ($today_in_days == Date_to_Days($year, $month, $day))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Compare of array
by Wampa (Hermit) on Feb 12, 2004 at 06:42 UTC |