JavaScript Datum vor 3 Monaten
var d = new Date();
d.setMonth(d.getMonth() - 3);
Anxious Angelfish
var d = new Date();
d.setMonth(d.getMonth() - 3);
var currentDate = new Date();
var expiryDate = new Date();
expiryDate.setMonth(expiryDate.getMonth() + 3);
console.log(currentDate);
console.log(expiryDate);
//$uj@y
var newDate = new Date(date.setMonth(date.getMonth()+8));
var jan312009 = new Date(2009, 0, 31);
var eightMonthsFromJan312009 = jan312009.setMonth(jan312009.getMonth()+8);
//$uj@y
var someDate = new Date(); // add arguments as needed
someDate.setTime(someDate.getTime() - 3*28*24*60*60);
// assumes the definition of "one month" to be "four weeks".