/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getUTCHours()

[this page | pdf | back links]

The getUTCHours() method (when applied to a JavaScript date) returns the UTC hour (0 to 23).

 

It has the following syntax (with no parameters):

 

date.getUTCHours()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile