Library for working with recurring dates in a fluent syntax
Install from nuget
dotnet add package Scott.Dates.Recurring
Install-Package Scott.Dates.Recurring
You can see the usage in the tests, simple example
using Scott.Dates.Recurring;
var weekly = RuleBuilder
.Every(2)
.Weeks()
.Starting(new DateTime(2016, 10, 2))
.Ending(new DateTime(2016, 10, 31))
.Build();
Assert.AreEqual(16, weekly.Sequence.Count);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.