Posted By

exo20811 on 12/01/11


Tagged

year info copyright full footers


Versions (?)

Display Current Year


 / Published in: JavaScript
 

Place anywhere on page where the full year is needed.

  1. <script language="JavaScript">
  2. var d = new Date();
  3. var curr_year = d.getFullYear();
  4. </script>
  5.  
  6.  
  7. <script language="Javascript">document.write(curr_year);</script>

Report this snippet  

You need to login to post a comment.