Share via


DateTimeControl.FirstWeekOfYear Property

Gets or sets a value that indicates the first week of the year displayed in the calendar.

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

Syntax

'Declaration
<BindableAttribute(True)> _
Public Property FirstWeekOfYear As Short
    Get
    Set
'Usage
Dim instance As DateTimeControl
Dim value As Short

value = instance.FirstWeekOfYear

instance.FirstWeekOfYear = value
[BindableAttribute(true)]
public short FirstWeekOfYear { get; set; }

Property Value

Type: System.Int16
A short that indicates the first week of the year displayed in the DatePicker; either 0 (the week in which January 1 occurs), 1 (the first week that has at least four days in the new year), or 2 (the first full week of the year). The default is 0 (the week in which January 1 occurs).

See Also

Reference

DateTimeControl Class

DateTimeControl Members

Microsoft.SharePoint.WebControls Namespace