Introduction
Welcome to Wolfgang.Extensions.DateTime!
Overview
Wolfgang.Extensions.DateTime is a .NET library providing extension methods for the System.DateTime type. It adds convenient methods for truncating time precision and navigating to date boundaries (week, month, year).
Key Features
- TruncateMilliseconds — removes milliseconds, returning a DateTime precise to the second
- TruncateSeconds — removes seconds and milliseconds, returning a DateTime precise to the minute
- FirstOfMonth / EndOfMonth — navigates to the first or last instant of the month
- FirstOfYear / EndOfYear — navigates to the first or last instant of the year
- FirstOfWeek / EndOfWeek — navigates to week boundaries, with culture-aware or explicit
DayOfWeekoverloads - All methods preserve
DateTimeKind(Local, Utc, Unspecified)
Getting Help
If you need help with Wolfgang.Extensions.DateTime, please:
- Check the Getting Started guide
- Review the API Reference
- Visit the GitHub repository
- Open an issue on GitHub Issues