dojo.date.add
dojo.require("dojo.date");
defined in dojo/date.js
Add to a Date in intervals of different size, from milliseconds to years
parameter | type | description |
---|---|---|
date | Date | object to start with |
interval | String | A string representing the interval. One of the following: "year", "month", "day", "hour", "minute", "second", "millisecond", "quarter", "week", "weekday" |
amount | Integer | How much to add to the date. |