2
我試圖在now()
超過開始日期和開始時間時纔會執行其他代碼。僅在特定日期和時間內運行條件
出於某種原因,它不是返回strresponse
,而是在else之後執行代碼。
如果我刪除starttime
,代碼工作正常,但我也需要它在一天的特定時間運行。
startdate= dateserial(2015, 08, 27)
starttime =timevalue ("12:00:00 pm")
IF date() < startdate and time() < starttime then
strResponse ="Auction begins at " & startdate & " " &starttime & " please wait untill auction has started"
else