Partilhar via


DateTimeField.TimeOnly Property

Sets or retrieves a value that indicates whether the control displays only time values and not date values.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property TimeOnly As Boolean
    Get
    Set
'Usage
Dim instance As DateTimeField
Dim value As Boolean

value = instance.TimeOnly

instance.TimeOnly = value
public bool TimeOnly { get; set; }

Property Value

Type: System.Boolean
true if the control displays only time values; otherwise, false. The default is false.

See Also

Reference

DateTimeField Class

DateTimeField Members

Microsoft.SharePoint.WebControls Namespace