Subtotal: $1,999.00
Can we use DATE code in LIVE HTML, or OTHER module?
I have multiple locations that need {current Year} Trying to use in LIVE HTML. I have been unsuccessful at this. Both scripts display blank - no current year
java
<p id="demo"></p>
<script>
function myFunction() {
var d = new Date();
var n = d.getFullYear();
document.getElementById("demo").innerHTML = n;
}
</script>
</body>
</html>
DISPLAY: BLANK
.htaccess PHP
NOT WORKING: <?php echo date("Y"); ?>
<?php echo $d->format("Y"); ?>
Please use DateTime:Now|yyyy token to show current year. Also make sure to use this token in square brackets([]).
See https://www.dnnsoftware.com/forums/threadid/430375/scope/posts/token-for-current-year