auto year with js in footer 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>