Basic Date Picker Documentation

BasicDatePicker.FirstDayOfWeek Property

Gets or sets the day of the week to display in the first day column of the BasicDatePicker control.

[Visual Basic]
Public Property FirstDayOfWeek As FirstDayOfWeek
[C#]
public System.Web.UI.WebControls.FirstDayOfWeek FirstDayOfWeek {get; set;}

Property Value

Default value is Default, which indicates that the day specified in the CultureInfo date format is used.

Remarks

Use the FirstDayOfWeek property to specify the day of the week to display in the first day column of the BasicDatePicker control. This property is set with one of the FirstDayOfWeek enumeration values. You can specify any day of the week or FirstDayOfWeek.Default, which indicates that the date is determined by the system settings.

Note   In Cultures where the FirstDayOfWeek is Sunday, week numbers can be displayed next to the calendar, otherwise week numbers are not displayed.

Example

[Visual Basic, C#] The following example demonstrates how to use the FirstDayOfWeek property to set the first day column to Monday.

[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker FirstDayOfWeek Example</title>
     <style>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker FirstDayOfWeek Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             FirstDayOfWeek="Monday">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

[C#]
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker FirstDayOfWeek Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker FirstDayOfWeek Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             FirstDayOfWeek="Monday">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | Culture | ShowWeekNumbers