This documentation is archived and is not being maintained.

DateTimeField.DateOnly Property

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

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public bool DateOnly { get; set; }

Property Value

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