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

SPUtility.CreateSystemDateTimeFromXmlDataDateTimeFormat Method

Windows SharePoint Services 3
Converts the date and time value from ISO8601 DateTime format (YYYY-MM-DDTHH:MM:SSZ) to system DateTime format (mm/dd/yyyy hh:mm:ss AM or PM).

Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
public static DateTime CreateSystemDateTimeFromXmlDataDateTimeFormat (
	string strDT
)

Parameters

strDT

A string that contains the date and time in XMLDATA DateTime format (YYYY-MM-DDTHH:MM:SSZ).

Return Value

A System.DateTime object that represents the date and time in system DateTime format.

The CreateSystemDateTimeFromXmlDataDateTimeFormat converts, for example, "2003-06-20T16:42:08Z" to "6/20/2003 4:42:08 PM ".

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.