I had to edit script above to allow for the expiration date coming in a different year...
Lemme see if I can think of a scenario it wouldn't be accurate...
1. one of the dates is in the year 2100. 2. Date last changed is after Feb 28 on a leap year and Date expired is the next year. (You'd get a day less than correct so a day early warning)
I could fix these things by making a leap year function.. or recording days from January 1, 2002. Is this necessary?
[edit: hmm. or making a loop step from expire year to changed year and count the days in the year (December 31)]
Brian [ 31 May 2002, 22:08: Message edited by: BrianTX ]
|