Under "Terms of Use" for a service, feature, etc in portal, I need to update the copyright range (e.i.: Copyright 2011 - 2020 All rights reserved), is there a way to update "2020" automatically every year.
I've tried
<p> Copyright © 2014-<script>document.write(new Date().getFullYear())</script> All Rights Reserved</p>
and it didn't work.
I also tried
Copyright 2011 - <dyn type="date" format="yyyy"/> All rights reserved.