var currentYear= new Date().getFullYear();
<script type="text/JavaScript"> var theDate=new Date() document.write(theDate.getFullYear()) </script>