Kok to the value of the Date object?

var d = new Date();
console.log( d ) //Sun Nov 27 2016 15:49:35 GMT+0400 (RTZ 3 (winter))

Can I get some of the values (day, month, year,etc.)
But how to get the: Sun (RTZ 3(winter)), etc.?
The regular season will not work.
July 2nd 19 at 13:51
2 answers
July 2nd 19 at 13:53
Native, unfortunately, no, but you can use the library moment.js.
Maybe there is an opportunity for us to get the timezone, like Atlantic/Azores. in php: date( 'e' )? - jerald_Buckridge30 commented on July 2nd 19 at 13:56
Or at least understand the sign of summer time? As in php date( 'I' ). It would have greatly simplified the date shows. - jerald_Buckridge30 commented on July 2nd 19 at 13:59
https://developer.mozilla.org/ru/docs/Web/JavaScri... - aniya commented on July 2nd 19 at 14:02
July 2nd 19 at 13:55
Can such a spike come up with:
const d = new Date();

const parseDate = d => {
 const [day, month, date, year, time, timeZoneOffset, timeZone] =
 d.toString().split(' ');
 return {day, month, date, year, time, timeZoneOffset, timeZone};
}

const myDateObj = parseDate(d);

console.log(myDateObj.timeZone);
console.log(myDateObj.timeZoneOffset);

Find more questions by tags JavaScript