Due to the nature of JavaScript, months return a number between 0-11 and have to be increased by +1 to match normal month-numbering conventions. For example, if .getMonth() is used in March, the result would return 2 (which might be confused with February). A workaround for this is to add +1 to the returning value to bring March back to 3.

You can also use the .getDay() method, which will return the current day of the week as a number, starting from 0, which equates to Sunday.