Documentation

add

adds the number of date units to date

object add(object date,number inc,string mode);

Parameters

dateobjectdate object
incnumberpositive or negative number of units
modestringunit name: day, week, month, year, hour or minute

Returns

objectdate object
Back to top