JS取得現在時刻の前日/翌日(昨日/明日)
1866 ワード
Date curDate = new Date();
var preDate = new Date(curDate.getTime() - 24*60*60*1000); //
var nextDate = new Date(curDate.getTime() + 24*60*60*1000); //
Date curDate = new Date();
var preDate = new Date(curDate.getTime() - 24*60*60*1000); //
var nextDate = new Date(curDate.getTime() + 24*60*60*1000); //