var NowTime = new Date(); var newTimes = new Date(newTime.getFullYear(), newTime.getMonth() - 3, newTime.getDate());//把时间月份减去3个月 console.log(newTimes)