Adds a specified time value to a date.

The DateAdd() function has three parameters:

  • date (date): Required. The date to add a time value to.
  • amountToAdd (number): Required. The time value to add to the date.
  • unitToAdd (string): Required. The unit of the time value being added to the date. Accepted values: Y (years), M (months), D (days), H (hours), and MI (minutes).

This example adds one day to the current timestamp. For the purpose of illustration, the example assumes that the current timestamp is 2023-08-05T13:41:23Z.

The example outputs the timestamp for the specified date.