PDA

View Full Version : ASP - How to add or subtract hour(s) based on time zone



Cameron L
February 25th, 2011, 12:15 PM
In this example, 1 hour is subtracted from the time:
<%=FormatDateTime(DateAdd("h",-1,Now),3)%>

In this example, 2 hoursare added to the time:
<%=FormatDateTime(DateAdd("h",2,Now),3)%>

-Cameron