/ Published in: JavaScript
Paste this code in your HTML to display the current year. This script is commonly used in the © copyright's current year.
Expand |
Embed | Plain Text
<script type="text/javascript"> now = new Date theYear=now.getYear() if (theYear < 1900) theYear=theYear+1900 document.write(theYear) </script>
Comments
Subscribe to comments
You need to login to post a comment.

Love it.