Custom year count from current date

Hello - I’m wondering if the capability exists to have a number generated based on the year. For instance, I’d like to say a company has been in business for 43 years. Wondering if there’s a way that I can do something like:

{{dc:global:date format=“y”}} + 22

to display 43 (and have it update next year). Not a big deal, but always like learning new capabilities if it exists…

Hi @coxdigitalarts,

Thanks for reaching out!

Regretfully, there’s no option to do this because there’s no operation like additional, subtraction and etc using the Dynamic content. What you are trying to come up can be done with custom JS but providing custom JS is outside the scope of our theme support.

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.