SPFieldDateTime.DisplayFormat Property

Gets or sets the type of date and time format that is used in the field.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property DisplayFormat As SPDateTimeFieldFormatType
    Get
    Set
'Usage
Dim instance As SPFieldDateTime
Dim value As SPDateTimeFieldFormatType

value = instance.DisplayFormat

instance.DisplayFormat = value
[ClientCallableAttribute]
public SPDateTimeFieldFormatType DisplayFormat { get; set; }

Property Value

Type: Microsoft.SharePoint.SPDateTimeFieldFormatType
An SPDateTimeFieldFormatType value that specifies the type of date and time format.

See Also

Reference

SPFieldDateTime Class

SPFieldDateTime Members

Microsoft.SharePoint Namespace