KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 4DVAR HTML Tags: A Quick way to update your Copyright footer
PRODUCT: 4D | VERSION: 11.5 | PLATFORM: Mac & Win
Published On: December 3, 2009
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

As a web developer you may find yourself struggling to update all of your web pages each January (or maybe each December) to include the new year in your copyright footer. If you are using 4D HTML Tags you can quickly and easily do this with the following HTML snippet:

<html>
<head>
<title>4D Footer Test</title>
</head>
<body>
Copyright &copy; 1985 - <!--#4DVAR Year of(Current date) -->
</body>
</html>


This will produce a footer that looks like:

Copyright © 1985 - 2020