.N .NET Landscape

FluentDateTime

Utilities & Core Helpers
github.com/FluentDateTime/FluentDateTime

Allows cleaner DateTime expressions and operations

GitHub stars
698
Forks
61
Open issues
1
NuGet downloads
6,649,616
latest 3.0.0
License
MIT
Language
C#
Last push
10 days ago
14 Oct 2026
Created
5 Aug 2012

FluentDateTime

Build status NuGet Status

Allows cleaner DateTime expressions and operations.

See Milestones for release notes.

Inspired by Ruby DateTime Extensions

NuGet

https://nuget.org/packages/FluentDateTime/

Usage

Here is some examples of use cases

// DateTime operations
DateTime.Now - 1.Weeks() - 3.Days() + 14.Minutes()
DateTime.Now + 5.Years()

// Relative DateTime evaluations
3.Days().Ago()
2.Days().Since(DateTime.Now)

// Fluent DateTime estimations
DateTime.Now.NextDay()
DateTime.Now.NextYear()
DateTime.Now.PreviousYear()
DateTime.Now.WeekAfter()
DateTime.Now.Midnight()
DateTime.Now.Noon()

// Current DateTime manipulation
DateTime.Now.SetTime(11, 55, 0)

// DateTime expressions
2022.Mar(23) // (implicitly convertible to DateTime and DateTimeOffset)
2022.March(23).At(10, 26)

See Unit Tests in the project for more details.

Icon

Calendar from The Noun Project