Easier way to get current year?
Posted
#4349
(In Topic #875)
oday
That'll work but I'm sure there's a much more simpler way of achieving this. The copyright setting uses $CURRENT_YEAR but this doesn't seem to output anything when surrounding it in brackets and using within a Comcode page.
Posted
Here's the clean way:
{$FROM_TIMESTAMP,%Y}
See PHP's 'strftime' function for syntax.
$CURRENT_YEAR is not a real Tempcode symbol, it's something interpreted elsewhere within Composr.
0 guests and 0 members have recently viewed this.
