js直接获取当天时间,标准格式年月日,时分秒. 往后推迟时间,则添加: 1小时 = 60 * 60 * 1000
new Date( +new Date() + 8 * 3600 * 1000 ).toJSON().substr(0,19).replace("T"," ")
后端获取
new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss").format(new Date());