top | item 20210776 Everything You Need to Know About Date in JavaScript 12 points| mozillas | 6 years ago |css-tricks.com 4 comments order hn newest cafard|6 years ago Then there's good old IE 11:foo = new Date(2018, 6, 100); [date] Mon Oct 08 2018 00:00:00 GMT-0400 (Eastern Daylight Time) gmiller123456|6 years ago What is it about this that you find odd? I just tested it in Chrome and it provides the same answer. I'm pretty sure this is the documented behavior. Quipunotch104|6 years ago Tldr, use moment.js codefined|6 years ago Can recommend DayJS[0] as a lighter alternative to MomentJS with an almost identical API.[0] https://github.com/iamkun/dayjs
cafard|6 years ago Then there's good old IE 11:foo = new Date(2018, 6, 100); [date] Mon Oct 08 2018 00:00:00 GMT-0400 (Eastern Daylight Time) gmiller123456|6 years ago What is it about this that you find odd? I just tested it in Chrome and it provides the same answer. I'm pretty sure this is the documented behavior.
gmiller123456|6 years ago What is it about this that you find odd? I just tested it in Chrome and it provides the same answer. I'm pretty sure this is the documented behavior.
Quipunotch104|6 years ago Tldr, use moment.js codefined|6 years ago Can recommend DayJS[0] as a lighter alternative to MomentJS with an almost identical API.[0] https://github.com/iamkun/dayjs
codefined|6 years ago Can recommend DayJS[0] as a lighter alternative to MomentJS with an almost identical API.[0] https://github.com/iamkun/dayjs
cafard|6 years ago
foo = new Date(2018, 6, 100); [date] Mon Oct 08 2018 00:00:00 GMT-0400 (Eastern Daylight Time)
gmiller123456|6 years ago
Quipunotch104|6 years ago
codefined|6 years ago
[0] https://github.com/iamkun/dayjs