Solved

Can you change the date order to DD/MM/YY in Shopify?

batulkr
Excursionist
43 1 2

Hello everyone,

Is it possible to change the date order to DD/MM/YY in Shopify? If yes, how does it usually work?

 

Accepted Solution (1)
FrankMoore
Explorer
44 10 12

This is an accepted solution.

You need to find date format of liquid code in your theme to change, for example to change published date of a blog article

 

{{ article.published_at | date: "%d/%b/%y" }}

 

Shopify Developer from @Cadifa

View solution in original post

Replies 5 (5)

FrankMoore
Explorer
44 10 12

Where exactly do you want to change the date format?

Shopify Developer from @Cadifa
batulkr
Excursionist
43 1 2
Basically all the dates in the store
FrankMoore
Explorer
44 10 12

This is an accepted solution.

You need to find date format of liquid code in your theme to change, for example to change published date of a blog article

 

{{ article.published_at | date: "%d/%b/%y" }}

 

Shopify Developer from @Cadifa
batulkr
Excursionist
43 1 2

Thank you! It solved the issue.

KaiM
Excursionist
19 0 3

I've been looking to change the date format for how a metafield date in Dawn is displayed and can't find it. Where is it exactly??????? When I put your suggested format I get "JSON: unexpected format error". What is currently there is {{ product.metafields.my_fields.release_date | metafield_text }} Where/what is "metafield_text"? Where do I find this or create a new metafield type?

 

This is my full code:

"type": "text",
"settings": {
"text": "RELEASE DATE: {{ product.metafields.my_fields.release_date | metafield_text }} .AVAILABLE UNTIL: {{ product.metafields.my_fields.release_end_date | metafield_text }} (Midnight AEDST)",
"text_style": "caption-with-letter-spacing"
}