EssentialsTime.TryParseIso8601 method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Time |
|---|---|
| Assembly | Skybrud.Essentials.dll |
TryParseIso8601(string, out EssentialsTime)
Static
Converts the specified iso8601 formatted date and time to its EssentialsTime
equivalent and returns a value that indicates whether the conversion succeeded.
public static bool TryParseIso8601(string iso8601, EssentialsTime result)
Parameters
iso8601
String
The string with the ISO 8601 formatted date and time.
result
EssentialsTime
When this method returns, contains the EssentialsTime value
equivalent to the date and time contained in iso8601, if the conversion succeeded, or
null if the conversion failed.
Returns
true if the iso8601 parameter was converted successfully; otherwise, false.