谁能告诉我怎么计算两个日期之间的天数,谢谢了!
谁能告诉我怎么计算两个日期之间的天数,感谢!
int numberofdays=(this.dateTimePicker2.Value.Subtract(this.dateTimePicker1.Value)).Days+1;
MessageBox.Show("The number of day is:"+numberofdays.ToString(),"Information",MessageBoxButtons.OK,MessageBoxIcon.Information);