Home Search

DriveWorks Pro 24
DateAddHours

Send Feedback

DateAddHours

Adds a specified number of hours to a date value.

Syntax

DateAddHours(Start Date, Hours)

Where:

Start Date The date to adjust.

Hours The number of hours to add. Negative values can be used to subtract.

Examples

Example 1

DateAddHours(Now(),5)

Will add five hours to the result of the Now function

Example 2

DateAddHours(Now(),-8)

will subtract eight hours from the result of the Now function.