Adds or subtracts a specified number of days from a given date.

  • Parameters

    • date: Date

      Date to provide

    • daysToAddOrSubtract: number

      Amount of days to add or subtract. Ex: -1 for the previous day, 1 for the next day.

    Returns Date