|
Using DateDiff( )
In this
example we will use DateDiff to find out the days left until
Christmas 2001 . (depressing thought ) . In effect you could
have any combination of dates .
here
is the code
<%
Dim date1 , date2
date1 = Now()
date2 = "25/12/2001"
Response.Write (DateDiff("d" , date1 , date2 ) &
" days till Christmas ")
%>
|