Please enable JavaScript
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.