Expand Minimize
This topic has not yet been rated - Rate this topic

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

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.