Add a Date to an Email Notification

December 7, 2023

Date and time stamping are useful in many cases. However, it’s not part of the field parameters you can add in the email templates and thank you pages. You can add date and time fields in the form to do it, but it is not necessary if it’s only for administrative purposes. The solution is to use the {DATE} tag, and it’s easy, as shown in the image below.

Add a Date to an Email Notification Image-1

Note

If you use {DATE} without a parameter in your template, Jotform will automatically replace that tag with a standard date and time string. That would be Year-Month-Date and Hour:Minutes:Seconds.

If you want to format the date string, you can add a parameter to the tag. We have some predefined parameters, as shown below.

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 \o\f F Y \a\t g:i A}  Monday, 7th of February 2011 at 5:17 AM  

You can customize the date further by following the standard PHP date formatting.

If you have helpful formatting examples that other users can benefit from, please share them in the comments below.

Academy Logo

Introduction to Form Building

Emails

Go to course :Emails
lesson-2 - image
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Willisa Roland - Profile picture
  • Daoud Elias - Profile picture
  • Daoud Elias - Profile picture