Date.getUTCHours() : getUTCHours : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » getUTCHours »

 

Date.getUTCHours()







The getUTCHours() method returns the hour portion of the date expressed, converted to universal time and expressed as an integer from 0 (12:00 a.m. midnight) to 23 (11:00 p.m.).












<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
dateVar = new Date();
alert(dateVar.getUTCHours());
//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» getUTCHours