It is also quite interesting to design a reciprocating time for a special day. Moreover, using several time functions, you can simply complete the reciprocating time function at a certain time point in the ASP web page. Change the parameters of the Cdate function to complete the reciprocating time for other dates. Below is a countdown for Maibu’s first anniversary station celebration. If you are interested, you might as well take the code to show it.
·The ASP source code is as follows:
Maibu's first anniversary station Countdown: <BR>
'Show the current time
The current time is <%=Date()%><%=Time()%><BR>
'Calculate the number of days displayed from the specified date
There are still <%=DateDiff("d",Now(),Cdate("08/10/200500:00:00"))%> days before August 10, 2005! <BR>
'Calculate the number of hours displayed from the specified date
There are still <%=DateDiff("h",Now(),Cdate("08/10/200500:00:00"))%> hours before August 10, 2005!<BR>
'Calculate the number of minutes displayed from the specified date
There are still <%=DateDiff("n",Now(),Cdate("08/10/200500:00:00"))%> minutes before August 10, 2005!<BR>
'Calculate the number of seconds displayed from the specified date
<%=DateDiff("s",Now(),Cdate("08/10/2005:00:00"))%> seconds!<BR>
·The following is HTML output:
Maibu's first anniversary station Countdown:
The current time is 2005-8-814:19:15
There are 2 days left before August 10, 2005!
There are 34 hours left until August 10, 2005!
There are 2021 minutes left before August 10, 2005!
There are 121,245 seconds left before August 10, 2005!