How to Identify the Current Selected Date at Run Time in Windows Forms MonthCalendarAdv(Classic)

The MonthCalendarAdv gives an array of selected dates. If you want to get only one date, choose the first element from that array. Also, set AllowMultipleSelection property to false. The DateSelected Event is fired after the user had completed the selection.

private void monthCalendarAdv1_DateSelected(object sender,EventArgs e)

{

   // DateSelected event is fired and selected dates will be displayed.

  MessageBox.Show("Selected Date: " + monthCalendarAdv1.SelectedDates[0].ToString());

}
Private Sub monthCalendarAdv1_DateSelected(ByVal sender As Object, ByVal e As EventArgs)



   ' DateSelected event is fired and selected dates will be displayed.

MessageBox.Show("Selected Date: " + monthCalendarAdv1.SelectedDates[0].ToString()) 

End Sub

Current selected date identified