Export (0) Print
Expand All
Expand Minimize

SPUtility.CreateDateTimeFromISO8601DateTimeString method

Converts the specified ISO 8601 date-time value to a string DateTime format.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static DateTime CreateDateTimeFromISO8601DateTimeString(
	string ISO8601Time
)

Parameters

ISO8601Time
Type: System.String

The time, in ISO 8601 format, to convert.

Return value

Type: System.DateTime
A System.DateTime object that provides the date and time.

ExceptionCondition
ArgumentNullException

ISO8601Time is a null reference (Nothing in Visual Basic).

This method converts the value of the ISO8601Time parameter to System.DateTime format (in YYYY-MM-DDThh:mm:ss).

Show:
© 2014 Microsoft