5 个解决方案
#1
if(this.dateTimePicker1.Value >this.dateTimePicker2.Value)
{
}
{
}
#2
if (dateTimePicker1.Value > dateTimePicker2.Value)
#3
if(DateTime.Compare(this.dateTimePicker1.Value,this.dateTimePicker2.Value)>0)
{
//dateTimePicker1中的日期大于dateTimePicker2中的日期
}
{
//dateTimePicker1中的日期大于dateTimePicker2中的日期
}
#4
返回值<0,则小于
#5
谢啦
#1
if(this.dateTimePicker1.Value >this.dateTimePicker2.Value)
{
}
{
}
#2
if (dateTimePicker1.Value > dateTimePicker2.Value)
#3
if(DateTime.Compare(this.dateTimePicker1.Value,this.dateTimePicker2.Value)>0)
{
//dateTimePicker1中的日期大于dateTimePicker2中的日期
}
{
//dateTimePicker1中的日期大于dateTimePicker2中的日期
}
#4
返回值<0,则小于
#5
谢啦