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")> _
<SubsetCallableTypeAttribute> _
Public Enumeration SPDateFormat
Dim instance As SPDateFormat
[ClientCallableTypeAttribute(Name = "DateTimeFormat")]
public enum SPDateFormat


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.

See Also


Microsoft.SharePoint.Utilities Namespace