DateTimeRange, Business Day and various DateTime, DateTimeOffset, TimeSpan extension methods
-
Updated
Jul 8, 2025 - C#
DateTimeRange, Business Day and various DateTime, DateTimeOffset, TimeSpan extension methods
Provides a testable abstraction and alternative to DateTime.Now / DateTime.UtcNow
Datetime, DateTimeOffset, TimeSpan starter code samples
DateTime Best Practices In .NET C#
A custom attribute for System.Text.Json that allows you to specify custom date formats for DateTime, DateTimeOffset, and their nullable counterparts during JSON serialization and deserialization.
A sample .NET 8 Web API demonstrating how to normalize DateTime, DateOnly, and nullable date inputs using a custom action filter that respects the user's time zone (sent via an HTTP header). Designed to prevent UTC shifting bugs in multi-tenant, multi-timezone Angular + .NET apps.
Unix Time Stamp to .NET DateTime converter for Json.NET
A collection of helpful DateTimeOffset extension methods
High resolution clock
FluentAssertions for DateTime, DateTimeOffset and TimeSpan.
Simple C# extension methods to calculate the difference in months between two dates
Normalize dates in your API with the Timezone Date Normalization API. Fix naive time issues and ensure accurate date handling across user time zones. 🌍✨
Comparison of 'DateTimeOffset' and 'DateTime' in .Net and C#
Add a description, image, and links to the datetimeoffset topic page so that developers can more easily learn about it.
To associate your repository with the datetimeoffset topic, visit your repo's landing page and select "manage topics."