I have a calendar where I only allow the user to select one day. Here's the code I have for that.
(e.SelectedDates.Count <> 0)
selDate = e.SelectedDates(e.SelectedDates.Count - 1).
calDay.SelectedDate = selDate
litDaySpec.Text = clsData.displayReservationsForADay(calDay.SelectedDate)
DateTime(calDay.SelectedDate.Year, calDay.SelectedDate.Month, calDay.SelectedDate.Day, 12, 0, 0)
'If (TimeZone.CurrentTimeZone.IsDaylightSavingTime(dateDate)) Then
The only problem with this is, if they have a date selected, and click that same date. I.e. 12/18/2012 is selected and they click 12/18/2012 again, it deselects that date so not date is selected. Is there a way I can make it keep that 12/18 selected if they click it and it's already been selected?