Compare date today to metadata

Hello!

We want to run email campaigns based on a baby’s birthday. However, there is no easy way to compare a metadata to the date today.

I have seen some discussions on using RunCode, but I have no skills in coding. I understand basic HTML and that’s it.

We would like to run multiple different campaigns depending on the baby’s age or even if they have not been born yet.

So after the customer submits the birthdate, the goal is to compare the date to today so the system can direct the customer to the right workflow.

All the help will be appreciated!

I am not the guy who knows about email campaigns but if it was just to get the date from the user and compare to today’s date and send them to a particular product or page or some section I could have given it a try.

Hi @2ngtech,

The main issue here isn’t comparing the dates—it’s getting Shopify to “wake up” and do it.

Shopify Flow waits for events (like “Order Created”). It doesn’t automatically scan your customer list every morning to check if a baby turned 6 months old today.

Since you want a no-code solution, you need to look for a “Scheduled Trigger” app.

Our trigger will be form submission via Metaobject entry created.

Just to clarify the limitation here: Shopify Flow cannot dynamically compare a stored date to “today” without custom code. Also, Flow only runs when an event happens, such as a form submission. It does not re-check dates over time as the baby’s age changes.

For a fully no-code setup, the common approach is to pass the birthdate directly to your email platform (Klaviyo, Omnisend, etc.) and use their built-in date-based triggers. This is how age-based and birthday campaigns are typically handled without custom development.

If you use Forms, then each form submission creates a metaobject.

When a customer submits the form, the data submitted can be processed by Flow and added to the customer record.
This can be first flow.

If your Flow is triggered by “new metaobject created” then you can use the time saved as metaobject property as approximate of the current time.

However, you can always have a second flow, running on schedule.
These flows have access to a variable scheduledAt which can also give you current date/time and date filters

This flow can run, get a list of relevant customer accounts and process them.