The getUTCMonth() method is represented by the following syntax:
An integer value between 0 and 11 that represents the month in the specified date.
Here, we will understand getUTCMonth() method through various examples.
Let's see an example to print current month according to universal time.Test it Now
Month value : 8
Let's see an example to print the month from the given date according to universal time.
Output:Test it Now
Month value1 : 8 Month value2 : 9