What's the most efficient way to check if a date falls between a repetition of a span of time using the c# date class.
E.g., you have the span 01/01/2009 1:00:00 am to 01/06/2009 5:00pm which repeats every x number of years, months, or weeks, etc.
And I want to check if variable date x
falls between any recurrence
I read Martin Fowler's paper on temporal expressions but all his examples are of single day events not ones that can span multiple days.