DateOnly and TimeOnly in .NET 6

1K views Nov 13, 2022
cloudcoders.xyz

DateOnly and TimeOnly in .NET 6. Two long-awaited types have been added to the core library in.NET 6 (preview 4). Developers can use DateOnly and TimeOnly to express either the date or time element of a DateTime.