Comment on issue format DateTime

THANG MANH November 5, 2017

How can I format datetime like: dd/MMM/yy h:mm tt in comment

I'm try everything in this site: https://codebarrel.atlassian.net/wiki/spaces/AUTO4J/pages/24903696/Working+with+Dates

Comment issue.pngResult.png

 

2 answers

1 accepted

0 votes
Answer accepted
Scott Harwood
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2017

Hi Thang,

I think this is what your after:

{{#now}}format="dd/MMM/yy h:mm a"{{/}}

Let me know if that works for you.

Cheers,

Scott

THANG MANH November 7, 2017

Thanks, Scott

It's work for me, Wonderful!

 Before that I'm trying this :)

{{#now}}format="dd/MMM/yy" {{/}} {{#now}}format="shortTime" {{/}}

 Sincerely,

Thang

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2017

Thang,

The documentation you've linked is for Jira but you're raising a ticket in the Confluence collection.

Can you confirm with us if you really are trying to use this in Confluence, or if the question was misfiled and should be moved to Jira?

Kind Regards,
Shannon

THANG MANH November 6, 2017

Shannon,

Thank you for you response. I will move it to Jira

Best regards,

Manh Thang

Suggest an answer

Log in or Sign up to answer