Please enable JavaScript to view this site.

Process Designer

Navigation: Javascript API > User dialog functions > Date functions

jr_date_add(Date dateValue, string value, string timeUnit)

Scroll Prev Top Next More

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.