<% If dtmDiff > 48 Then Response.Write "Still " & TimetoNY & " hours " Response.Write "to go till year " & NextYr & "<br />" & VbCrLf Response.Write "<p>" Response.Write "Already " & dtmDiff & " hours passed since " Response.Write "the beginning of the year " & CurYr & "<br />" & VbCrLf Response.Write "</p>" Else Response.Write "The year " & CurYr & " has just begun. <br />" & VbCrLf Response.Write "<b>HAPPY NEW YEAR !</b> <br />" & VbCrLf End If Response.Write "There are " & TimetoNY & " hours until New Year's " & NextYr & "<br />" & VbCrLf Response.Write "Which gives you " & dtmDiffCurrChristmas & " hours to shop for Christmas <br />" & VbCrLf %>
The following is written between the ASP delimiters: <% some ASP Script Code %>.
Still 8126 hours to go till year 2027Already 634 hours passed since the beginning of the year 2026
There are a lot of variables used to produce this page. This is because I am a puzzled learner. I mean I like to break down everything into several pieces and reassemble them. This is how I learn what may appear to be complex. If you can rewrite this page in fewer variables, I would appreciate it. Please, critique me and fill up my comment pages.
The server's time is <%= dtmTime %> <br /> In one hour the server's time will be <%= dtmLater %> <br /> </p> <p>Hours since begining of year equals <% =dtmDiff %> West Coast Time </ br> or for the East Coast <% =dtmEastTime %> <p/> <p>Current Year is <%=CurYr%> </p> <p>The Date is <%=date%> </p> <p> Christmas Day is : <%=CurChristmas%> </p> <p> Hours until Christmas date, your shopping hours, are : <%=dtmDiffCurrChristmas%> </p> <p> Date for beginning of YR : <%=JFCY%> </p> <p> Date for next New YR : <%=ComingNY%> </p> <p> Hours to Happy New Year!! from variable function : <%=TimetoNY%> </p>
Hello User.
The server's time is 10:29:12 AM
In one hour the server's time will be 11:29:12 AM
Hours since begining of year equals 634 West Coast Time br> or for the East Coast 637
Current Year is 2026
The Date is 1/27/2026
Christmas Day is : 12-25-2026
Hours until Christmas date, your shopping hours, are : 7968
Date for beginning of YR : January-1-2026
Date for next New YR : 1/1/2027
Hours to Happy New Year!! from variable function : 8126
Return to Table of Contents