从monthCalendar控件获取DateTime

时间:2014-03-25 15:04:53

标签: c# winforms datetime monthcalendar

DateTime[] arr=new DateTime[dt.Rows.Count];
for(int i=0;i<dt.Rows.Count;i++){
     arr[i]=Convert.ToDateTime(dt.Rows[i]["datetime"]);
}
this.monthCalendar1.MonthlyBoldedDates = arr;

我希望monthCalendar1_DateChanged获得DateTime(包括时间)。 我尝试使用monthCalendar1.SelectionStart,但我只得到没有时间值的日期。

感谢。

0 个答案:

没有答案
相关问题