JsonValueExtensionsGetDateOnlyOrDefault Method

Overload List

GetDateOnlyOrDefault(JsonValue, JsonValueType) Gets the specified JsonValue as a DateOnly value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns DateOnly.MinValue, which is the default value of DateOnly. The actual format is attempted to be auto detected. If you know exact format use the other GetDateOnlyOrDefault overloads.
GetDateOnlyOrDefault(JsonValue, JsonDateTimeFormat, JsonValueType) Gets the specified JsonValue as a DateOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns DateOnly.MinValue, which is the default value of DateOnly.
GetDateOnlyOrDefault(JsonValue, DateOnly, JsonValueType) Gets the specified JsonValue as a DateOnly value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns defaultValue. The actual format is attempted to be auto detected. If you know exact format use the other GetDateOnlyOrDefault overloads.
GetDateOnlyOrDefault(JsonValue, String, DateOnly) Gets the specified JsonValue as a DateOnly value using the specified format if Type property of the specified json parameter is String and it can be converted to DateOnly; otherwise, returns defaultValue.
GetDateOnlyOrDefault(JsonValue, JsonDateTimeFormat, DateOnly, JsonValueType) Gets the specified JsonValue as a DateOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns defaultValue.

See Also