Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

FluentDateTime

> 编程语言
Open source

Allows cleaner DateTime expressions and operations

696 stars0 likes1 views
WebsiteGitHub

About

Allows cleaner DateTime expressions and operations

FluentDateTime

Allows cleaner DateTime expressions and operations.

See Milestones for release notes.

Inspired by Ruby DateTime Extensions

  • Extensions To Datetime
  • Extensions To Time

NuGet

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

Usage

Here is some examples of use cases

csharp
// 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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言