JavaScript Tutorial/Date/getUTCFullYear
Версия от 18:52, 25 мая 2010; (обсуждение)
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>