Current Year.
<span id="current-year"></span> <script type="text/javascript"> $(function(){ var date_object = new Date(); var year = date_object.getYear(); if(year < 2000) { year = year + 1900; } $('#current-year').html(year); }); </script>