Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to get current date

꾸꾸 May 15, 2016

This question is in reference to Atlassian Documentation: Writing User Macros

I want to make 'getcurrentdate' macro

How to get the current date and use

1 answer

1 vote
mybucket2018 May 16, 2016

Create a new user macro and name it 'current-date'. Once done go through the options and copy the below code.

## Developed by: Name here
## Date created: dd/mm/yyyy
## Installed by: Name here
## @noparams

$action.dateFormatter.formatGivenString("dd-MMM-yyyy hh:mm:ss", $content.currentDate)

Result

currentdate.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events