SPUtility.CreateISO8601DateTimeFromSystemDateTime Method
Converts a system DateTime value to ISO8601 DateTime format (yyyy-mm-ddThh:mm:ssZ).
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.
Is the format correct?
I think the format should be yyyy-MM-ddTHH:mm:ssZ, not yyyy-mm-ddThh:mm:ssZ (tested on SPF 2010).
- 6/8/2010
- James J. Liang
SharePoint DateTime Format Conversions Help
Do check out this link for help on SharePoint DateTime Format Conversions:
http://prasanjitmandal.blogspot.com/2010/06/sharepoint-datetime-format-conversions.html
http://prasanjitmandal.blogspot.com/2010/06/sharepoint-datetime-format-conversions.html
- 6/7/2010
- Prasanjit Mandal