How can I create a product tag that contains a dynamic creation date using Flow?

Topic summary

A user selling custom neon signs needed to automatically tag newly created products with their creation date in Shopify Flow. Each customer design generates a new product, requiring automated date tagging.

Initial Problem:

  • Attempted using liquid syntax but tags displayed literal text instead of dynamic dates
  • Tried various date formats matching PHP syntax without success
  • Used incorrect variable syntax (single braces { } instead of double {{ }})

Solution Provided:

  • Use proper Flow variable syntax: {{ product.createdAt }} (accessible via “Add a variable” button)
  • Apply Liquid date filter (not PHP) for formatting
  • Final working syntax: {{product.createdAt | date: "%d-%m-%Y"}}

Resolution:
The issue was resolved by correcting the variable name and syntax. The user confirmed the Flow now works successfully for automatic date tagging of products.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

We sell custom neon signs and use personalisation tools to do this, which means every time someone adds their design to their basket it is saved as a brand new product (regardless if they order or not).

I’m trying to set up a Shopify flow so that every time a new product is created it’s tagged with “Created [DYNAMIC DATE}” Ideally something that would read like “Created 7 April 2024” for example.

I found a load of advice in using liquid syntax to do this, and the flow is working but it’s not actually pulling the dynamic date into the tag label. It appears exactly as typed.

This is the kind of thing I’ve been using:

Created { product.created_at | date: “%b %d, %y” }

Created { product.created_at | date: “%Y-%m-%d” }

I’ve tried product.createdAt and loads of different date variants that match PHP formats, but no luck! All my labels come out saying exactly what I set as the tag, not with dynamic dates.

ag

Does anybody have any advice (that isn’t another app or reporting tool)?

Cheers,

Kerri

1 Like

You’ve made up some variables that don’t exist in Flow. If you are unsure about variable names, use “Add a variable” to add them. It will show you the syntax, which in this case is {{ product.createdAt }}

Note that the brackets are {{ and }} not { and }. I’m not sure what your are referring to with PHP, but this is Liquid not PHP. See https://shopify.github.io/liquid/filters/date/

1 Like

That makes sense why it wasn’t working! Thanks for the advice, I looked for the variable in flow and it’s working now!

For anybody else searching this how to automatically tag products with their creation date in Shopify using Flow:

{{product.createdAt | date: “%d-%m-%y”}}

Cheers Paul!

1 Like