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.
Author by
Admin
Updated on June 04, 2022Comments
-
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 over 10 yearsdead link, and this is why it is suggested to never answer with only a link
-
utsikko over 10 years@peroija, thanks for the tip. Just tried the link, and it works.
-
peroija over 10 yearsaaaaaaaaaaaaaaand its back up. Apparently I had clicked it when the host's 99.99% uptime failed :P