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 d = new Date();
d.setMonth(d.getMonth() - 3);
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".