need2progm
Programmer
I have 4 "TimeSlices" Annual, Quarterly, Weekly, Daily.
Given a time slice and 2 dates (BeginDate as Date, and EndDate as Date) I need to come up with the number of occurrences.
Example ...
BeginDate = 1/1/2004
EndDate = 2/15/2005
Switch TimeSliceType
Case Annual
Count = EndDate.Year - BeginDate.Year
Case Montly
Case Weekly
Case Daily
Does .Net have any cool functions to help me out with this?
Thanks in Advance for your help!
Given a time slice and 2 dates (BeginDate as Date, and EndDate as Date) I need to come up with the number of occurrences.
Example ...
BeginDate = 1/1/2004
EndDate = 2/15/2005
Switch TimeSliceType
Case Annual
Count = EndDate.Year - BeginDate.Year
Case Montly
Case Weekly
Case Daily
Does .Net have any cool functions to help me out with this?
Thanks in Advance for your help!