Customize Date Fields in Deliver

Prev Next

You can change the way that dates are displayed in-line in a Deliver mailing using Liquid Markup.

💡 Have access to the query?

Instead of formatting merge fields with Liquid Markup, you can set a date's Format Mask by editing the export directly. This approach works well when you want the same date and time formatting applied to all date fields in your mailing.

  1. Click Deliver in the top navigation bar.

  2. Click on the mailing to be formatted.

  3. Click on Edit Message to access the HTML editor popup.

  4. Click the Source icon in the HTML editor toolbar to display the mailing’s source code.

  5. Find the date/time merge field and set your cursor within it after the merge field’s title.

  6. Add a space, a vertical bar (pipe delimiter), a space, the word “date”, a colon, and another space inside the curly brackets.

    1. For example, the merge field {{HSV-Date}} becomes {{HSV-Date | date: }}.

  7. Finish amending the merge field by adding your preferred format from the list below.

Date/Time Format Examples

For these examples, we will use a sample merge field called {{HSV-Date}}.

Example 1 will change your date and time to look like: Monday, July 7 at 9:00 AM

{{HSV-Date | date: "dddd, MMMM d 'at' h:mm tt"}}

Example 2 will change your date and time to look like: Mon, Jul 07 at 9:00 AM

{{HSV-Date | date: "ddd, MMM dd 'at' h:mm tt"}}

Example 3 will change your date and time to look like: 07-07-2019

{{HSV-Date | date: "MM-dd-yyyy"}}

Still looking for what you need?