Customer account creation date

Hello everyone,
So ive been trying to display the customer account creation date in the account page and i even tried to create a metafield but i got lost. I want to display the date under “Customer Since”. I also found this tag but it doesnt work for me.

{{ customer.created_at | date: '%B %d, %Y' }}

          

            ##### Name
            

              {{ customer.first_name -}} 
              {{- customer.last_name }}
            

          

          
            ##### Email
            

{{ customer.email }}

          

          {% if customer.phone != blank %}
            
              ##### Phone Number
              

{{ customer.phone }}

            

          {% endif %}

          
            ##### Customer Since
            

{{ customer.created_at | date: '%B %d, %Y' }}

          

          
            ##### Total Orders
            

0

          

          
            ##### Total Spent
            

$0.00

          

        

www.studioblank.store

It appears that the Customer object that is available to us in Shopify Liquid doesn’t have a “created_at” property. https://shopify.dev/docs/api/liquid/objects/customer#customer

To get the customer’s first order date (which might be close to when they created their account), you can do:

{% assign first_order = customer.orders | sort: "created_at" | first %}
{% if first_order %}
  {{ first_order.created_at | date: "%B %d, %Y" }}
{% endif %}

This gives you the date of their first order — which is often a good proxy for “customer since.”

1 Like

Yeah i think i will go with that for now thank you.
Is there a method using Flow? There is a trigger called “Customer Created” but i still cant find a way to use it.