Retrieve product creation date

TheSaroSnake
Shopify Partner
55 1 4

Hi folks,

I'm looking for a way to retrieve the date of when the product is created. I want to display on the product page 'This product is available since --/--/--'. 

Is there any way to collect this data from a code? 

 

Thanks for any help I might get!

Cheers,
Saro

Cheers,
Saro
0 Likes
Pasilobus
Shopify Expert
189 0 17

Try adding this, it may work 

The product is available since {{ product.published_at | date: "%a, %b %d, %y" }}

 

Pasilobus, Inc - Shopify Experts - Contact us at support@pasilobus.com
TheSaroSnake
Shopify Partner
55 1 4

Hi uurcan,

That worked like a charm, thank you very much!

Cheers,
Saro

Cheers,
Saro
0 Likes
Genkichan
New Member
5 0 0

Hi - Does this code still work? I need to know exactly where in the theme liquids to paste it? I cannot seem to identify the correct liquid and location on the liquid to paste this code to make it work. 

Thank you.

0 Likes