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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.