AddMilliseconds Function

  • Updated

The AddMilliseconds function adds a specified number of milliseconds to a DateTime value.

Syntax

 

The AddMilliseconds function adds a specified number of milliseconds to a DateTime value.

 

AddMilliseconds(dateTime, numMilliseconds)

 

 

Arguments:

 

 

 

dateTime

DateTime - The base date and time.

 

 

numMilliseconds

Integer - Number of milliseconds to add. A negative value will subtract milliseconds.

Remarks

  • Example: AddMilliseconds("2005-1-28T11:59:59.476", 10) returns 2005-1-28T11:59:59.486.
  • Example: AddMilliseconds("2005-1-28T11:59:59.476", -10) returns 2005-1-28T11:59:59.466.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.