MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/btxz72/what_are_some_javascript_things_beginners_dont/ep5wic4/?context=9999
r/javascript • u/[deleted] • May 28 '19
383 comments sorted by
View all comments
247
Months are zero based
0 u/[deleted] May 28 '19 [deleted] 5 u/amdc !CURSED! May 28 '19 that's pretty much everywhere 0 u/[deleted] May 28 '19 [deleted] 0 u/the_argus May 28 '19 It's not array based. The months come back zero based so you can have an array of month names and get the correct label. See also Date.prototype.getDay() for day of the week labels.
0
[deleted]
5 u/amdc !CURSED! May 28 '19 that's pretty much everywhere 0 u/[deleted] May 28 '19 [deleted] 0 u/the_argus May 28 '19 It's not array based. The months come back zero based so you can have an array of month names and get the correct label. See also Date.prototype.getDay() for day of the week labels.
5
that's pretty much everywhere
0 u/[deleted] May 28 '19 [deleted] 0 u/the_argus May 28 '19 It's not array based. The months come back zero based so you can have an array of month names and get the correct label. See also Date.prototype.getDay() for day of the week labels.
0 u/the_argus May 28 '19 It's not array based. The months come back zero based so you can have an array of month names and get the correct label. See also Date.prototype.getDay() for day of the week labels.
It's not array based. The months come back zero based so you can have an array of month names and get the correct label. See also Date.prototype.getDay() for day of the week labels.
247
u/TrikkyMakk May 28 '19
Months are zero based