js获取 X-X-X N 天后 是 X年X月X日
function GetVale(startDate,Day) { var dateVal = startDate.split('-'); var newDate = dateVal[0]+'/'+dateVal[1]+'/'+dateVal[2]; var d = new Date(newDate); var n = Day; d.setDate(d.getDate()+n); var year = d.getYear(); year = year > 1900 ? year : (year+1900); var date=year+"年"+(d.getMonth()+1)+"月"+(d.getDate())+"日"; return date; }