Date Add
Introduction
Adds a fixed time interval to the specified date.
Parameter Description
date: is the specified date. This function will add a certain time interval to this date.
count: is the time interval, supports input of numbers with positive and negative signs. If it is a positive number, it means adding a few days (custom time unit), see example one; if it is a negative number, it means reducing a few days, see example two;
units: is the time unit, i.e., the unit for adding the time interval. For example, calculating by "days" can also be converted to calculating by "years".
Time units include the following symbols, both formats can be used: "Unit Description" → "Abbreviation"
Milliseconds: "milliseconds" → "ms"
Seconds: "seconds" → "s"
Minutes: "minutes" → "m"
Hours: "hours" → "h"
Days: "days" → "d"
Weeks: "weeks" → "w"
Months: "months" → "M"
Quarters: "quarters" → "Q"
Years: "years" → "y"
Click the link below to view all time units.