You can modify the format of the pickup/delivery/shipping date and time in your email notifications by adding code to your templates.
Create a backup of your current email templates before making any changes.
Changing the date format
- In your Shopify Settings go to Notifications, then open the email template you would like to modify e.g. the Order Confirmation.
- Find the following liquid variable that shows the customer's pickup date:
{{ attributes.Pickup-Date }}
- Replace the above code with the following line:
{{ attributes.Pickup-Date | date: "%A, %-d %B %Y" }}
- Use strftime.net to get your preferred date format
- Example: %d/%m/%Y will display the date in DD/MM/YYYY format.
- Replace the code between the quote marks " " with your preferred date format.
- Example: "%A, %d/%m/%Y"
- Repeat these steps on the liquid variables for the local delivery and shipping dates as required. A full list of available liquid variables for Store Pickup + Delivery can be found in our Liquid variable reference guide.
Repeat the above for delivery and shipping using the attributes below.
Local Delivery date
{{ attributes.Delivery-Date }}
Shipping date
{{ attributes.Shipping-Date }}
Changing the time format from 24h to 12h (military to standard)
- In your Shopify Settings go to Notifications, then open the email template you would like to modify e.g. the Order Confirmation.
- Find the following liquid variable that shows the customer's pickup time:
{{ attributes.Pickup-Time }}
- Replace this code with the following line:
{{ attributes.Pickup-Time | date: "%r" }}
- The small letter 'r' will format the time to appear in 12h. To make it appear in 24h, the capital 'R' is used instead.
- Repeat these steps on the liquid variables for the local delivery time as required. A full list of available liquid variables for Store Pickup + Delivery can be found in our Liquid variable reference guide.