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

How to get a 24-hour time from {{now}}

靳光光
Contributor
July 2, 2023

I get the current time from {{now.shorttime}}, but it is 6:00 AM or 8:00 PM as 12-hour.

Is there any other smart value through which I can get 18:00 ?

1 answer

1 accepted

2 votes
Answer accepted
靳光光
Contributor
July 2, 2023

I find the answer as below:

{{now.convertToTimeZone("Asia/Shanghai").format("HH:mm")}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events