I am trying to set the calendar 开发者_开发技巧to its default (date of today) date. After changing it inside my program but lets say the user chose a date like 2 months backwards of forward, doing
calendar.SelectedDate = DateTime.Today;
doesn't help.
Thanks in advance for your help
i found calendar.DisplayDate = DateTime.Today; solves it
精彩评论