Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: bool TryParseIso(string, out DateTime)

Declaration

public static bool TryParseIso(
    string str,
    out DateTime result
)

Summary

Attempts to parse the specified string as an ISO-formatted DateTime. The formats supported are guided by ISO-8601, but do not match it exactly. Strings with no timezone information are parsed into DateTimeKind.Unspecified.

ISO-8601 features not supported: day numbers; week numbers; time offsets; comma for decimal separation.

Features supported not in ISO-8601: '-' separator for the basic format; date shortening; timezone marker for date-only strings.