AddSeconds Function

  • Updated

The AddSeconds function adds a specified number of seconds to a DateTime value.

Syntax

 

The AddSeconds function adds a specified number of seconds to a DateTime value.

 

AddSeconds(dateTime, numSeconds)

 

 

Arguments:

 

 

 

dateTime

DateTime - The base date and time.

 

 

numSeconds

Integer - The number of seconds to add. A negative value will subtract seconds.

Remarks

  • Example: AddSeconds("2005-1-28T06:17:13", 10)) returns 2005-1-28T06:17:23.
  • Example: AddSeconds("2005-1-28T06:17:13", -10) returns 2005-1-28T06:17:03.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.