Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateDateTimeFromISO8601DateTimeString method
Collapse the table of content
Expand the table of content

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


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.


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).

© 2015 Microsoft