Select multiple dates in DateTimePicker in vb.net?
If you want to select a date range using DateTimePicker, the best way is if two DateTimePicker are probably controlling the date and date.
You can then change the date of the opposite control when the first date is selected to make sure FromDate is before ToDate and vice versa
I found a MonthCalendar control that seems perfect for this purpose, but I cannot find a parameter (method, property) to get selectedDates, and then use them.
If you want to use the MonthCalendar control, you can specify the MaximumSelectionCount property, and then the user can select the dates by clicking one and clicking on another date
You can get the dates selected by the user using the SelectionRange or SelectionStart and SelectionEnd properties
How about if I want to pick random dates like February 4, 6, 10.
This is harder. Suggestion - you can use the BoldedDates MonthCalendar , and when the user clicks on the day, you highlight it in bold. Then can you read the array after they have finished their selection? Maybe someone has a suggestion for this?
source share