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

Date Format

Arlene OConnor May 7, 2024

So I created a form with a field using the Date field.

2024-05-07_10-36-40.jpg

When choosing from the the calendar, it appears dd/mm/yyyy.

However, when inputted into the email using the custom field link (which is linked to this field), it shows up as yyyy-dd-mm.  I went into the settings section and all dates are shown in the correct format so I can't figure out why it is inverting like this.

2024-05-07_10-36-57.jpg

1 answer

1 accepted

3 votes
Answer accepted
Michel Neeser
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 7, 2024

Hi @Arlene OConnor

I am not sure how you're actually inserting the date into an email – but if you're using smart values, you can format a date like this:

{{date.format("dd/MM/yyyy")}}

Let me know if this helps!

Arlene OConnor May 7, 2024

Here's the way it appears in the email:  

tentative to be released on {{issue.SRC-ReleaseDate}}

because the "release date" is important to the automation that triggers the email being sent out.

Michel Neeser
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 7, 2024

@Arlene OConnor I think the following expression should work then:

{{issue.SRC-ReleaseDate.format("dd/MM/yyyy")}}

 

Arlene OConnor May 7, 2024

Thank you; that did work! Question, though: Because I couldn't find it in my searches of articles and other questions, can I change the dd/mm/yyy to read May 7, 2024 instead of 05/07/2024?    Our communications director wants the email release to match precisely to the template she designed.

Michel Neeser
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 7, 2024

@Arlene OConnor You can achieve this with the following:

{{issue.SRC-ReleaseDate.longDate}}

Also, you can have a look at the large table at the top of this article to get an idea of the possible date formats.

Like # people like this
Arlene OConnor May 7, 2024

Thanks again for all your help!

Suggest an answer

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

Atlassian Community Events