SOURCE

//1. 格林威治时间  GMT+ 8 = 北京时间 , 东八区
var now = new Date();
var nowStr = now.toString();// Mon Jul 12 2021 09:03:52 GMT+0800 (China Standard Time)
console.log(nowStr); 
console.log(now.toUTCString()); //GMT标准时间,  Mon, 12 Jul 2021 01:09:29 GMT
 
//2. 时间戳 Timestamp
var timeStamp = Date.now();
console.log(timeStamp); 

//3. 解析ISO8602 格式
var dt =  new Date('2021-07-08T08:55:55.374+0800');
console.log(dt.toString());
console 命令行工具 X clear

                    
>
console