andrewhoule
5/2/2013 - 1:31 PM

Javascript: Current Year

Javascript: Current Year

<script>now=new Date;theYear=now.getYear();if(theYear<1900){theYear=theYear+1900;document.write(theYear);}</script>