SPUtility.CreateSystemDateTimeFromXmlDataDateTimeFormat method
SharePoint 2013
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).
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- strDT
- Type: System.String
A string that contains the date and time in XMLDATA DateTime format (YYYY-MM-DDTHH:MM:SSZ).
Return value
Type: System.DateTimeA System.DateTime object that represents the date and time in system DateTime format.