0
如何在node.js的utc timezone 0中創建新的Date()?在node.js中創建時,如何獲取新的Date()in gmt 0?
console.log(new Date('02-28-2017')) //2017-02-27T22:00:00.000Z
console.log(new Date('02-28-2017').toUTCString()); //Mon, 27 Feb 2017 22:00:00 GMT
console.log(new Date(new Date('02-28-2017').toUTCString())); //Mon, 27 Feb
我想:
console.log(new Date('02-28-2017')) //2017-02-28T00:00:00.000Z
的可能的複製[如何使用的時區偏移的NodeJS?](http://stackoverflow.com/questions/10615828/how-to -use-timezone-offset-in-nodejs) – Adapter
[create javascript date UTC](http://stackoverflow.com/questions/13364036/create-javascript-date-utc) – JJJ
let dt = new Date(Date .UTC(2017,1,28)); 可能重複創建javascript日期UTC - JJJ - 它的工作原理,thx – Jackson