The AddHours function is a built-in function that adds n hours to dt and returns a valid date and time.

Input parameters

dt: Date Time Type

n: Integer Type

Output parameters

Date Time Type

Examples

Usage

Result

AddHours( #1982-05-21 22:20:30#, 1 )

#1982-05-21 23:20:30#

AddHours( #2001-10-12 23:20:00#, 5 )

#2001-10-13 04:20:00#

See Also

Available Data and Time Functions | Available Built-in Functions