Add an hour to a date (solution)
I searched on the web for a solution to add a day to a date or to add an hour to a date, or to add a minute to a date, or add a month to a date, etc. in ASP.
The way to do it in ASP.NET is different e.g. System.DateTime.Now.AddMinutes( 2 ).
But in classic ASP I needed to use dateadd function and the now() function. I can now add an hour to the recent time.
func: dateadd(interval, number, date)
interval =
yyyy - Year
q - Quarter
m - Month
y - Day of year
d - Day
w - Weekday
ww - Week of year
h - Hour
n - Minute
s - Second
e.g. add an hour to time then..<code> dateadd("h",1,time) </code>
Jesus == Way == Truth == Life == Love == God
|