Cool DateTime extension methods with FluentDateTime - Open Source Libraries - 1
Story
After a few weeks, Today (20/07/2022), I could go through some stack overflow questions. I found a straightforward question about C# DateTime extension methods when I went through it.
He wants to get business working DateTime when adding/subtracting the number of days. That's it, and a very straightforward question in Stack overflow.
I found a super lightweight DLL to resolve this requirement. Also found super cool DateTime extension methods in it. It calls as FluentDateTime. This library is fully open source and developed by Simon Cropp.
Where we can find
- Here is the Github link
https://github.com/FluentDateTime/FluentDateTime
- Here is the Nuget link
https://www.nuget.org/packages/FluentDateTime/
- You can add DLL to your project using the below.
Install-Package FluentDateTime -Version 2.1.0
Usage of FluentDateTime
According to question we can use direactly AddBusinessDays() and SubtractBusinessDays() methods.
More useful DateTime extensions
Thank you for being with me Today, dev diary content. We will see another daily content again. See you soon!!!👍👍👍👍