Easier way to get current year?

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#4349 (In Topic #875)
Joe
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.

Post

Posted
Rating:
#4350
Clever solution.
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.