CreateSystemDateTimeFromXmlDataDateTimeFormat Method

The CreateSystemDateTimeFromXmlDataDateTimeFormat method of the SPUtility class 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).

Parameters

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

Remarks

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

Return Value

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security