奥迪4s配件价格表:[求助]vbs中对比日期如何对比?

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 21:48:04
高手帮忙,我想对比当前时间与某一个特定日期的,例如获取到当前时间thedate=date(),设定时间ok=2006-5-1,如何对比现在是否已经超过设定时间了,简单的方法,谢谢啦。

Dim strDt 'As String
strDt = "2006-6-7"
If CDate(strDt) > Now Then
'Debug.Print ">"
Else
'Debug.Print "<="
End If