Date.getUTCFullYear() : getUTCFullYear : Date JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Date » getUTCFullYear »

 

Date.getUTCFullYear()








The getUTCFullYear() method returns the year as a full four-digit number converted to universal time.

The following example uses the getUTCFullYear() Method to Return the Year












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

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Date
» getUTCFullYear