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

What is JavaScript - Date getUTCHours() Method?

Javascript date getUTCHours() method returns the hours in the specified date according to universal time. The value returned by getUTCHours() is an integer between 0 and 23.

Syntax

Its syntax is as follows −


Return Value

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

Example

Try the below example.

Output

getUTCHours() : 11


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

Javascript Objects Topics