JMap.Util.Date.substract
Returns a date, that is the given date minus the given amount of unit.
It's safe, the given date is not changed.
Possible time units are : "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" |"years"
the date from
amount of unit
time unit
// returns the date 2 days in the pastJMap.Util.Date.substract(new Date(), 2, "days")// returns the date 2 seconds in the pastJMap.Util.Date.substract(new Date(), 2, "seconds") Copy
// returns the date 2 days in the pastJMap.Util.Date.substract(new Date(), 2, "days")// returns the date 2 seconds in the pastJMap.Util.Date.substract(new Date(), 2, "seconds")
JMap.Util.Date.substract
Returns a date, that is the given date minus the given amount of unit.
It's safe, the given date is not changed.
Possible time units are : "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" |"years"