I have defined a PDF stylesheet for a space i would like to include the current date in the footer whenever i print the page. I used the @bottom-left { to define the footer. Is there a function to print date in the footer.
Hi Karthik,
By default, Confluence doesn't have this option, but it can be done through macros.
Steven posted this answer in 2014 at https://community.atlassian.com/t5/Confluence-questions/Insert-current-date-into-Confluence-page/qaq-p/313517 you can try, but be aware it may no longer work.
There are also other topics about "displaying the current date" in the below questions:
Current date macro in confluence?
How do you display current date and time in Confluence using User Macro and how do you add it like a date and time stamp.
In the third post, @Matthew J. Horn wrote:
You can use the dateFormatter's formatGivenString() method to specify a format: $action.dateFormatter.formatGivenString("dd-MMM-yyyy", $some_date)
You can use the dateFormatter's formatGivenString() method to specify a format:
$action.dateFormatter.formatGivenString("dd-MMM-yyyy", $some_date)
Hope this helps!
It looks like you're new here. Sign in or register to get started.