Date Object

Bashar Ayyash
1 min readAug 30, 2015

--

This is a part of Starter to ES6

… If the time zone offset is absent, the date-time is interpreted as a local time.

This is the new update on Date() object with ES6, so now you will not see difference between the date you want to parse and the output by javascript engine.

screenshot from Chrome

All the dates that want to be parsed in ES6 will be parsed according to the local time, if you want to parse the date according to UTC then you should explicitly add (Z)

I was facing the issue of date parsing when I was working on reservation systems, with ES6 no need to worry anymore.

This is a part of Starter to ES6

--

--

Bashar Ayyash

Front End Developer, I’m confident that Vue.js is as powerful as React, but way more flexible and a lot easier to learn