📜  js 减去天数 - Javascript 代码示例

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

代码示例3
var dateOffset = (24*60*60*1000) * 5; //5 days
var myDate = new Date();
myDate.setTime(myDate.getTime() - dateOffset);