javascript display current year w3schools code example
Example: javascript code for year in html
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>