asp.net.ph

DayNameFormat Enumeration

System.Web.UI.WebControls Namespace


Specifies the display format for the days of the week on a Calendar control.

Members


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.

Remarks

The DayNameFormat enumeration represents the possible values that can be passed to the DayNameFormat property of a Calendar control.

Example

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 

See Also

NextPrevFormat   TitleFormat Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note