Share via


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

Syntax

'Declaration
<ClientCallableTypeAttribute(Name := "DateTimeFormat")> _
<SubsetCallableTypeAttribute> _
Public Enumeration SPDateFormat
'Usage
Dim instance As SPDateFormat
[ClientCallableTypeAttribute(Name = "DateTimeFormat")]
[SubsetCallableTypeAttribute]
public enum SPDateFormat

Members

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

Reference

Microsoft.SharePoint.Utilities Namespace