Using DateOnly and TimeOnly in .NET 6 - Code with Steve

added by DotNetKicks
5/25/2021 12:59:24 PM

855 Views

In .NET 6 (preview 4), two long-awaited types have been introduced as part of the core library. DateOnly and TimeOnly allow developers to represent either the date or time portion of a DateTime. These two new types are structs (value types) and may be used when your code deals with date or time concepts independently.


0 comments