这三种判定时间是否相等的方法有什么区别?经过测试只有第三种可以用。求高手指点。
//if Checkbox1.Checked and (DateTimePicker1.Date = Date) and (DateTimePicker2.Time = Time) then //if Checkbox1.Checked and (DateTimeToStr(DateTimePicker1.Date) = DateTimeToStr(Date)) and (TimetoStr(DateTimePicker2.Time) = TimetoStr(Time)) then if Checkbox1.Checked and (formatdatetime('yyyy/mm/dd',DateTimePicker1.Date) = formatdatetime('yyyy/mm/dd',Date)) and (formatdatetime('HHMMSS',DateTimePicker2.Time) = formatdatetime('HHMMSS',Time)) then