Functiondojo.date.add

dojo.require("dojo.date");
defined in dojo/date.js

Add to a Date in intervals of different size, from milliseconds to years

Usage

function (/*Date*/ date, /*String*/ interval, /*Integer*/ amount) (view source)
parametertypedescription
dateDateobject to start with
intervalStringA string representing the interval. One of the following: "year", "month", "day", "hour", "minute", "second", "millisecond", "quarter", "week", "weekday"
amountIntegerHow much to add to the date.