GregorianDate.Parse Method (String) |
Converts the specified string representation of a date and time to its GregorianDate equivalent.
Note that GregorianDate is always assumed to be in UTC. You cannot parse strings containing time zone information. However, this will handle three common ISO8601 formats:
Namespace: AGI.Foundation.Time
Exception | Condition |
---|---|
ArgumentNullException | Thrown when s is null. |
FormatException | Thrown when s does not contain a valid string representation of a date and time. |