JavaScript Objects The Date Object-getUTCMonth() - Javascript Objects

What is JavaScript - Date getUTCMonth() Method?

Javascript date getUTCMonth() method returns the month in the specified date according to universal time. The value returned by getUTCMonth() is an integer between 0 and 11 corresponding to the month. 0 for January, 1 for February, 2 for March, and so on.

Syntax

Its syntax is as below −

Return Value

Returns the month in the specified date according to universal time.

Example

Try the below example.

Output

getUTCMonth() : 2


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics