Probably you have switched descriptions for getDate() and getDay()
getDate()
getDay()
2.getDate() : Returns a integer representing the date (0 to 6), 0 represents Sunday, it cannot be changed. 3.getDay() : Returns the day of the week for the local time(1 to 31).
2.getDate() : Returns a integer representing the date (0 to 6), 0 represents Sunday, it cannot be changed.
3.getDay() : Returns the day of the week for the local time(1 to 31).
getDate() returns 1 to 31 (day of month) and getDay() returns 0 to 6 (day of week) (switched values in your descr)
Anyways great article, thank you :)
rectified, thank you
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Probably you have switched descriptions for
getDate()
andgetDay()
getDate()
returns 1 to 31 (day of month) andgetDay()
returns 0 to 6 (day of week) (switched values in your descr)Anyways great article, thank you :)
rectified, thank you