How to select multiple date in calendar and display it in label

17,316

Here is a link on how to select multiple dates in Calendar control:

Calendar control with multiple date selections

Hopefully, it helps.

Share:
17,316
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    Suppose I have Calender and and I want to select multiple date and display in label. I have use following code but it is not working properly. Please correct it

    lblMultipleDate.Text = Calendar1.SelectedDates[0].ToShortDateString();
    Label2.Text = Calendar1.SelectedDates[Calendar1.SelectedDates.Count-1].ToShortDateString();
    
  • peroija
    peroija over 10 years
    dead link, and this is why it is suggested to never answer with only a link
  • utsikko
    utsikko over 10 years
    @peroija, thanks for the tip. Just tried the link, and it works.
  • peroija
    peroija over 10 years
    aaaaaaaaaaaaaaand its back up. Apparently I had clicked it when the host's 99.99% uptime failed :P