Created
January 7, 2016 23:43
-
-
Save tomdurkin/fd5c00b1ad5fa0e6eabc to your computer and use it in GitHub Desktop.
Show current year in webpage
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 type="text/javascript"> | |
document.write(new Date().getFullYear()); | |
</script> | |
// wordpress | |
<?php echo date("Y"); ?> | |
// More examples | |
http://updateyourfooter.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment