📜  在 javascript 代码示例中获取日期后 5 个月

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

代码示例4
var currentDate = new Date();
var expiryDate = new Date();
expiryDate.setMonth(expiryDate.getMonth() + 3);
console.log(currentDate);
console.log(expiryDate);

//$uj@y