Last active
March 3, 2021 01:34
-
-
Save ricardozea/9077361 to your computer and use it in GitHub Desktop.
UPDATE: Use this one instead: https://snippets.cacher.io/snippet/dcd110499b3150c77795 ~~Script for year so you don't have to type it or have old pages display past years.~~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script to display the year. | |
Edited by: Ricardo Zea | |
*/ | |
var time=new Date(); | |
var year=time.getYear(); | |
if (year < 2000) | |
year = year + 1900; | |
document.write(" " + year + " "); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment