Skip to content

AddSeconds

Shaun Lawrence edited this page Aug 13, 2020 · 2 revisions

Returns the supplied date/time with the specified number of seconds added.

AddSeconds(date, numberOfSeconds)

Parameters

date

The date/time that will have the numberOfSeconds added.

Type DateTime
Required Yes

numberOfSeconds

The number of seconds to add to the date.

Type Double
Required Yes

Examples

AddSeconds(#now#, 2)

Adds 2 seconds to the current date/time.

AddSeconds(#now#, -2)

Subtracts 2 seconds from the current date/time.