请教个时间控制的问题
如果说我要在某段时间到某段时间,例如:19:01-19:02我有两个文本框供用户输入时间段,然后有一个按钮,按下按钮执行某操作,应该怎么云写这段时间,怎么用代码呢
MsgBox Now > CDate(Date & " 19:01") And Now < CDate(Date & " 19:02")要注意把:全角的冒号替换成:
text1=replace(text1,":",":") text2=replace(text2,":",":") MsgBox Now > CDate(Date & " " & text1) And Now < CDate(Date & " " & text2)