Get Full year from current date : getFullYear « Date « JavaScript Tutorial






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

</body>
</html>








12.7.getFullYear
12.7.1.Get Full year from current date
12.7.2.Date().getFullYear()