Skip to content

Instantly share code, notes, and snippets.

@jbd91
Created September 17, 2019 19:00
Show Gist options
  • Select an option

  • Save jbd91/adf5b49b3fd917825aebc774146749c1 to your computer and use it in GitHub Desktop.

Select an option

Save jbd91/adf5b49b3fd917825aebc774146749c1 to your computer and use it in GitHub Desktop.
Print Year to page
// client side solution rather than server (PHP) useful for theme options to create a dynamic copyright date
<script type="text/javascript">document.write(new Date().getFullYear())</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment