DateTimeControl Class

Represents a DateTime control.

System.Object
  System.Web.UI.Control
    Microsoft.SharePoint.WebControls.SPCompositeControl
      Microsoft.SharePoint.WebControls.DateTimeControl

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

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class DateTimeControl : SPCompositeControl, 
	IValidator, IPostBackDataHandler, IDesignerEventAccessor

Important noteImportant

In order for the DateTimeControl to render properly, the EnableViewState property must be set to true.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: