Language

FirstDayOfWeek Enum

Definition

Specifies the day to display as the first day of the week on the Calendar control.

public enum class FirstDayOfWeek
public enum FirstDayOfWeek
type FirstDayOfWeek = 
Public Enum FirstDayOfWeek
Inheritance
FirstDayOfWeek

Fields

Name Value Description
Sunday 0

Indicates that the first day of the week is Sunday.

Monday 1

Indicates that the first day of the week is Monday.

Tuesday 2

Indicates that the first day of the week is Tuesday.

Wednesday 3

Indicates that the first day of the week is Wednesday.

Thursday 4

Indicates that the first day of the week is Thursday.

Friday 5

Indicates that the first day of the week is Friday.

Saturday 6

Indicates that the first day of the week is Saturday.

Default 7

Indicates that the first day of the week is specified by the system settings.

Examples

The following code example demonstrates how to use a drop-down list to set the first day of the week for the Calendar control.

<%@ Page Language="C#" AutoEventWireup="True" %>



   
  

     Calendar FirstDayOfWeek Example 



   

Calendar FirstDayOfWeek Example

Select the first day of the week.



First day of the week:
Sunday Monday Tuesday Wednesday Thursday Friday Saturday Default
<%@ Page Language="VB" AutoEventWireup="True" %>



   
  

     Calendar FirstDayOfWeek Example 



   

Calendar FirstDayOfWeek Example

Select the first day of the week.



First day of the week:
Sunday Monday Tuesday Wednesday Thursday Friday Saturday Default

Remarks

The FirstDayOfWeek enumeration represents the values that specify which day to display as the first day of the week on the Calendar control.

Applies to

See also