The JavaScript date getUTCMonth() method is used to get the integer value between 0 and 11 that represents the month on the basis of universal time.
Syntax:
dateObj.getUTCMonth()
Return:
An integer value between 0 and 11.
Example:
<!DOCTYPE html> <html> <body> <script> var today = new Date(); document.writeln(today.getUTCMonth()+1); </script> </body> </html>