021-01-13T16:00:00.000Z 日期格式转换

function rTime(date) {
    var json_date = new Date(date).toJSON();
    return new Date(new Date(json_date) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/.[d]{3}Z/, '') 
}
原文地址:https://www.cnblogs.com/wsj1/p/14278153.html