Skip to content

AddHours

Shaun Lawrence edited this page Aug 12, 2020 · 3 revisions

Returns the supplied date with the specified number of hours added.

AddHours(date, numberOfHours)

Parameters

date

The date that will have the numberOfHours added.

Type DateTime
Required Yes

numberOfHours

The number of hours to add to the date.

Type Double
Required Yes

Examples

AddHours(#now#, 2)

Adds 2 hours to the current date/time.

AddHours(#now#, -2)

Subtracts 2 hours from the current date/time.

Clone this wiki locally