System.Web.UI.WebControls Namespace
Specifies the display format for the days of the week on a Calendar control.
Member Name |
Description |
Full |
The days of the week displayed in full format. For example, Tuesday. |
Short |
The days of the week displayed in abbreviated format ( default ). For example, Tues. |
FirstLetter |
The days of the week displayed with just the first letter. For example, T. |
FirstTwoLetters |
The days of the week displayed with just the first two letters. For example, Tu. |
The DayNameFormat enumeration represents the possible values that can be passed to the DayNameFormat property of a Calendar control.
The following example demonstrates how to programmatically set the DayNameFormat of a Calendar at run time, based on a selected option.
void Page_Load ( Object src, EventArgs e ) {
myCalendar.DayNameFormat = ( DayNameFormat ) formatList.SelectedIndex;
}
Show me
NextPrevFormat TitleFormat