Gets the DateTime from an ISO8601 string.
Namespace: CTCT.UtilAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
public static Nullable<DateTime> FromISO8601String(
this string str
)
public static Nullable<DateTime> FromISO8601String(
this string str
)
<ExtensionAttribute> _
Public Shared Function FromISO8601String ( _
str As String _
) As Nullable(Of DateTime)
<ExtensionAttribute> _
Public Shared Function FromISO8601String ( _
str As String _
) As Nullable(Of DateTime)
public:
[ExtensionAttribute]
static Nullable<DateTime> FromISO8601String(
String^ str
)
public:
[ExtensionAttribute]
static Nullable<DateTime> FromISO8601String(
String^ str
)
static member FromISO8601String :
str : string -> Nullable<DateTime>
static member FromISO8601String :
str : string -> Nullable<DateTime>
Parameters
- str
- Type: System String
String.
Return Value
Returns a datetime object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).