✅ NodaTime JSON Serialization
Hello,
.NET will parse any date format to
DateTime
or DateTimeOffset
, but what happens if I give NodaTime control over the serialization?
Assuming I accept an Instant
in the DTO and a request comes in, but the format is not ISO-8601
, will it be able to convert any type of date like .NET does, or will it only work with strict types?
From the docs:
6 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
I am using System.Text.Json, but NodaTime is still a thord party library with its own date types
and the same Json.Net configuration is also valid for System.Text.Json
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Got it, thanks