#[js] Date update with JS only
# That will work in all browsers I've run across.
# You can just call getFullYear directly on the newly-created Date, no need for a variable. new Date().getFullYear() may look a bit odd, but it's reliable: the new Date() part is done first, then the .getFullYear().
source : https://stackoverflow.com/posts/4562604/revisions