Converts a DateTime object to an ISO8601 representation.
Namespace: CTCT.UtilAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
public static string ToISO8601String(
this Nullable<DateTime> dateTime
)
public static string ToISO8601String(
this Nullable<DateTime> dateTime
)
<ExtensionAttribute> _
Public Shared Function ToISO8601String ( _
dateTime As Nullable(Of DateTime) _
) As String
<ExtensionAttribute> _
Public Shared Function ToISO8601String ( _
dateTime As Nullable(Of DateTime) _
) As String
public:
[ExtensionAttribute]
static String^ ToISO8601String(
Nullable<DateTime> dateTime
)
public:
[ExtensionAttribute]
static String^ ToISO8601String(
Nullable<DateTime> dateTime
)
static member ToISO8601String :
dateTime : Nullable<DateTime> -> string
static member ToISO8601String :
dateTime : Nullable<DateTime> -> string
Parameters
- dateTime
- Type: System Nullable DateTime
DateTime.
Return Value
Returns the ISO8601 string representation for the provided datetime.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Nullable DateTime . 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).