[點(diǎn)晴永久免費(fèi)OA]ASP中使用DateDiff函數(shù)對(duì)比時(shí)間、日期
<% '用cdate函數(shù)轉(zhuǎn)換為日期類型 a= cdate("2018-11-22 18:30:00") b= now() c= datediff("s",a,b) if c> 0 then response.write("b時(shí)間晚于a時(shí)間") elseif c = 0 then response.write("a時(shí)間和b時(shí)間為同一時(shí)刻") else response.write("a時(shí)間晚于b時(shí)間") end if %> 該文章在 2023/5/5 11:59:49 編輯過 |
關(guān)鍵字查詢
相關(guān)文章
正在查詢... |