dateTimePicker时间比较问题

1.介于两个时间之间的时间
DateTime dateTime1 = dateTimePicker1.Value;
 DateTime dateTime2 =dateTimePicker2.Value;
Time BETWEEN to_date('" + dateTime1 + "','YYYY-MM-DD HH24:MI:SS') AND  to_date('" + dateTime2 + "','YYYY-MM-DD HH24:MI:SS')
2.OutputTime为varchar2型
OutputTime between dtpOthStart_Time.Value.ToString("yyyy-MM-dd")  AND  dtpOthEnd_Time.Value.ToString("yyyy-MM-dd")

你可能感兴趣的:(dateTimePicker时间比较问题)