📜  javascript 日期 3 个月前 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:09.684000             🧑  作者: Mango

代码示例2
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".