SPDateFormat Enumeration
SharePoint 2010
Specifies the date and time format.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
| Member name | Description | |
|---|---|---|
| DateTime | Specifies that both date and time are included. | |
| DateOnly | Specifies that only the date is included. | |
| TimeOnly | Specifies that only time is included. | |
| ISO8601 | ISO8601 time format YYYY-MM-DDTHH:MM:SSZ. | |
| MonthDayOnly | Specifies that only the month and day are included. | |
| MonthYearOnly | Specifies that only the month and year are included. |