There are probably a dozen really obnoxious ways to solve this :
But I am trusting someone has a better idea than mine.
The method calls below will tell me by the result= 0 if my program
has reached another 2 week cycle. But once the year rolls over..
- Seems like I need to get the days not from year but the days
from the beginning of time...( although I am not sure how to get that ...)
or resort to some other roll over techniques.
int update = 0;
int iresult;
DateTime theday = DateTime.Now;
int dayOfYear = theday.DayOfYear;
DateTime SeedDate = Convert.ToDateTime("1/23/06");
int seedDayOfYear = SeedDate.DayOfYear;
update = Math.DivRem(dayOfYear-seedDayOfYear, 14, out iresult);
Thanks
--
Andrew