Converts the specified ISO 8601 representation of a date and time to its DateTimeOffset equivalent.
public static DateTimeOffset? TryParseIso8601(string? value)
parameter | description |
---|---|
value | The ISO 8601 string representation to parse. |
Non-null if successful.
Converts the specified ISO 8601 representation of a date and time to its DateTimeOffset equivalent.
public static bool TryParseIso8601(string? value, out DateTimeOffset date)
parameter | description |
---|---|
value | The ISO 8601 string representation to parse. |
date | The DateTimeOffset equivalent. |
True if successful.