DateOnly and TimeOnly support with System.Text.Json

added by DotNetKicks
11/22/2021 4:15:41 PM

460 Views

In .NET 6.0 we finally have DateOnly and TimeOnly, two long-awaited data types that allow to store, respectively, only a date (i.e., a birth date or an invoice date) or a time in day (for example, a recurring time for a meeting). Unfortunately, System.Text.Json doesn't provide built-in support for these new types.


0 comments