C# DatePicker 抓取與設定
C# DatePicker 抓取與設定
DateTime Date1 = new DateTime(2015,10,13,1,0,0);//
年月日時分秒
DateTime Date2 = new DateTime(2015,10,13,2,3,0);//
年月日時分秒
this.DatePicker_StartExpirationDate.Value = Date1;
this.DatePicker_EndleExpirationDate.Value = Date2;
MessageBox.Show(“” +
this.DatePicker_StartExpirationDate.Value.Hour);