Add a Date on Email Notification

Last Update: October 2, 2016

You may need to add submission dates in email notifier or in your Thank You message. In order to accomplish this, use {DATE} tag like the following.


If you use {DATE} without a parameter in your template it will be automatically replaced with a standard date time string as shown in the first row of the table below.

If you want to format the date string you can do so by adding a parameter to the tag: {DATE:arg}. We have some predefined parameters as shown below but if you need more customized dates you can do it with standard PHP date formatting


TagOutput
{DATE}2011-02-07 05:17:05
{DATE:Date-US}Feb 7, 2011
{DATE:Date-EU}7 Feb, 2011
{DATE:Time-US}5:17:05 AM
{DATE:Time-EU}5:17:05
{DATE:Full-US}Feb 7, 2011 at 5:17:05 AM
{DATE:Full-EU}7 Feb, 2011 at 5:17:05
{DATE:l, jS \of F Y \a\t g:i A}Monday, 7th of February 2011 at 5:17 AM


If you have useful formatting examples which other users can benefit please share them in the comments below.


1 Comment...


   
cxl (November 02, 2016 at 03:05 PM)

thanks


Send Comment