프로그래밍/Web
ASP, 날짜 비교, DateDiff 를 이용한 현재 일시 비교
홍반장水_
2022. 1. 6. 15:17
반응형
DateDiff 를 이용한 현재 일시 비교
<% dim nowtime_chk
nowtime_chk = DateDiff("n", "2022년 01월 07일 00:00:00", now())
if( nowtime_chk > 0 )then %>
console.log(" 날짜 지났다.");
<% else %>
console.log(" 날짜 아직.");
<%
end if
%>
반응형