Larry,
Quote:
> I was wondering if anyone knew of a quick & easy way to determine if a
date
> falls on one of the days when time changes to accomodate daylight savings
> time? Thanks in advance, I really enjoy the newsgroup.
First Sunday in April and last Sunday in October.
IF MONTH(DayToTest) = 4 AND INRANGE(DAY(DayToTest),1,7) AND DayToTest % 7 =
0
!If month is April and day is 1-7 and is a Sunday
!Spring Forward
ELSIF MONTH(DayToTest) = 10 AND INRANGE(DAY(DayToTest),25,31) AND DayToTest
% 7 =0
!If month is Octoer and day is 25-31 (last week) and is a Sunday
!Fall Back
END
You can probably convert this into more efficient code, but this should
give you an idea.
Steve
Steven C. Gallafent
The Computer Guy
http://ourworld.compuserve.com/homepages/gallafent