I'm using datetimepicker in C#, it's showing all dates in calendar view, I want all the dates should be displayed in calendar view as its working fine. But I want, we can able to select any past date from the datetimepicker, but not any future date. I mean, I want all future dates should be disabled so that we can not select any future date.
What I have tried:
dateTimePicker1.MaxDate = DateTime.Now;