Common Date Formatting In Klaviyo

Brian Whalley Updated by Brian Whalley

Klaviyo supports many filters for controlling the presentation of dates. These are accessed by adding the filter tag format_date_string to your template, followed by the options on how to format the date. For example, formatting an ETA might look like {{ event.EstimatedPackageDelivery | format_date_string | date:'l, F, d' }} to create "Monday, February 26".

A complete resource from Klaviyo on formatting dates is available.

February 26, 2023 

{{ event.EstimatedPackageDelivery|format_date_string|date:'F d, o' }}

May 1, 2024 at 4:25 pm

{{ event.DeliveredAt|default:''|format_date_string|date:'F d, o' }} at {{ event.DeliveredAt|default:''|format_date_string|date:'g:i A' }}

26 February 2023

{{ event.EstimatedPackageDelivery|format_date_string|date:'d F o' }}

02-26-2023

{{ event.EstimatedPackageDelivery|format_date_string|date:'m-d-Y' }}

26-02-2023

{{ event.EstimatedPackageDelivery|format_date_string|date:'d-m-Y' }}

2/26/23 (no leading 0s)

{{ event.EstimatedPackageDelivery|format_date_string|date:'n/j/y' }}

Monday, February 26

{{ event.EstimatedPackageDelivery|format_date_string|date:'l, F, d' }}

Feb 11

{{ event.EstimatedPackageDelivery|format_date_string|date:'M d' }}

11 Feb

{{ event.EstimatedPackageDelivery|format_date_string|date:'d M' }}

How did we do?

Capturing Marketing consent on Wonderment Tracking Pages with Klaviyo Forms

Creating A Split Shipment Email

Contact