Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET CalendarDay IsWeekend Property

ASP.NET CalendarDay IsWeekend Property


CalendarDay Control CalendarDay control


Definition and Usage

The IsWeekend property is used to get whether the date is a Saturday or Sunday.

If the date is on a weekend, this property returns "TRUE"; otherwise it returns "FALSE".


Example

The following example shows whether the selected date is on a weekend:

  

  OnDayRender="DaySelect"/>

  The selected date is in a weekend:

  

Demo Example »


CalendarDay Control CalendarDay control