📜  删除时区 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:14.139000             🧑  作者: Mango

代码示例1
var d = new Date();
d.setTime(1432851021000);
d.toDateString(); // outputs to "Thu May 28 2015"
d.toGMTString(); //outputs to "Thu, 28 May 2015 22:10:21 GMT"