How can I get a current year in ./confluence/decorators/includes/footer-content.vm? I can get a date string by $action.getDateFormatter().getCurrentDate() but want to use the DataFormatter to format for just year but it takes Date objects and I seem to lack one.
I want to put copyright my-corp $year in the footer.
For a list of all the parameters available in the context refer to https://developer.atlassian.com/confdev/development-resources/confluence-architecture/confluence-internals/velocity-template-overview/confluence-objects-accessible-from-velocity
Try getCalendar() using DateFormatter and getting the YEAR attribute.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs