programming-examples/asp/More_Code_Snippets/Using DateDiff.asp

6 lines
142 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim date1 , date2
date1 = Now()
date2 = "25/12/2004"
Response.Write (DateDiff("d" , date1 , date2 ) & " days till Christmas ")
%>