Share via


DateTimeControl.TimeOnly Property

Gets or sets 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
<BindableAttribute(True)> _
Public Property TimeOnly As Boolean
    Get
    Set
'Usage
Dim instance As DateTimeControl
Dim value As Boolean

value = instance.TimeOnly

instance.TimeOnly = value
[BindableAttribute(true)]
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

DateTimeControl Class

DateTimeControl Members

Microsoft.SharePoint.WebControls Namespace