use the dateFormatter's formatGivenString() method to specify a format:
$action.dateFormatter.formatGivenString("dd-MMM-yyyy", $some_date)
You can use other methods .
follow API docs on it:
Hello Uththira,
Create new user macro form Confluence admin -> User macros -> create new macro and put the below on bottom of the Template.
$action.dateFormatter.formatGivenString("dd-MMM-yyyy hh:mm:ss", $content.currentDate)
Give the macro name. example- current-date-time. Save the macro
Inser macro in page {current-date-time}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.