Date formatting in an email

Some tags in Remarkety are actually date fields, for example - the order date, shopper's last order, etc.

If you prefer to format them a little differently, you can use any format supported by PHP's date format function, and apply them to the tag using the |dateformat:"..." modifier.

Here are a few examples:

Tag Result

{$shopper.lastOrderDate}

2015-03-13T09:27:49+00:00

{$shopper.lastOrderDate|dateformat:"M d, Y"}

Mar 13, 2015

{$shopper.lastOrderDate|dateformat:"d/m/Y"}

 13/03/2015

{$shopper.lastOrderDate|dateformat:"l, M d, Y"}

Friday, Mar 13, 2015

{$shopper.lastOrderDate|dateformat:"l, M d, Y g:ia"}

  Friday, Mar 13, 2015 9:27am

The tags which support the date modifiers are:

{$shopper.lastOrderDate}

{$order.createdOn}

{$order.modifiedOn}

(more tags coming soon - let us know which tags you'd like to see!)

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.