Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Dates
The getMonth() Method
getMonth() returns the month (from 0 to 11) of a date:
Note:
0=January, 1=February etc.