This function is used to calculate a new date. For this, any number of seconds, minutes, hours or days can be added or subtracted from any date.
Parameter |
Type |
Description |
|---|---|---|
dateValue |
Date |
Date object |
value |
string |
Number of time units to be added |
timeUnit |
string |
Time unit used for the calculation s: seconds m: minutes h: hours d: days |
The function returns a date object of type Date as result.