SPUtility.CreateISO8601DateTimeFromSystemDateTime method
SharePoint 2013
Converts a system DateTime value to ISO8601 DateTime format (yyyy-mm-ddThh:mm:ssZ).
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- dtValue
- Type: System.DateTime
A System.DateTime object that represents the system DateTime value in the form mm/dd/yyyy hh:mm:ss AM or PM.