Prop Webcontrol Calendarday Isselected
# ASP.NET CalendarDay IsSelected Property
* * CalendarDay Control](#)
* * *
## Definition and Usage
The IsSelected property is used to get whether a date is selected in the Calendar control.
If the date is selected in the Calendar control, this property returns "TRUE", otherwise it returns "FALSE".
* * *
## Example
The following example shows whether the selected date is in the current month:
Sub DaySelect(obj As Object, e As DayRenderEventArgs)
If e.Day.IsSelected Then
If e.Day.IsOtherMonth = "TRUE" Then
Label1.Text = "NO"
Else
Label1.Text = "YES"
End If
End If
End Sub
The selected date is in the current month:
[Demo Example Β»](#)
* * CalendarDay Control](#)
YouTip