Removing the time from created date

Todd Thelin May 14, 2020

I have created an automation script that will email an admin when an issue is created. When the email is sent, I send the created date in the email. The problem is that the created date is a date/time field and when it sends the email it looks like this: 2020-05-14T19:11:39.8+0000. Can this data be manipulated before it is sent out? I would like to strip the time at least and if it is possible, change the date to be more readable. Thank you

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 14, 2020

Hi Todd,

If you are using Automation for Jira you can use this:

{{issue.Created.convertToTimeZone("America/Chicago").longDateTime}}

Just change for your Time Zone if need be. 

Suggest an answer

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

Atlassian Community Events