SPDateFormat Enumeration

Specifies the date and time format.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableTypeAttribute(Name = "DateTimeFormat")]
public enum SPDateFormat

Member nameDescription
DateTimeSpecifies that both date and time are included.
DateOnlySpecifies that only the date is included.
TimeOnlySpecifies that only time is included.
ISO8601ISO8601 time format YYYY-MM-DDTHH:MM:SSZ.
MonthDayOnlySpecifies that only the month and day are included.
MonthYearOnlySpecifies that only the month and year are included.