-
-
Notifications
You must be signed in to change notification settings - Fork 378
Working days calculations
kappy edited this page Mar 27, 2012
·
3 revisions
In many businesses there's the concept of a working day. Either being used to calculate the estimated finishing date of a workflow or to return a phone call, some business process may use the working day concept to add or subtract days from a date excluding weekends and holidays.
Since business holidays or even weekends may vary depending on the business politics or localization, there isn't a rule of thumb to make these calculations. The way this is handled is by delegating the definition of working day to a DateTimeCultureInfo.
Most of these examples are based on unit tests. I think this is the best way for you to have a real notion of how this library behaves. All examples are included on the source code in test project (ExampleTests.cs).