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.
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.
Tag | Output |
---|---|
{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.
Send Comment:
3 Comments:
More than a year ago
Daoud, Did you try the EU format. It looks like it might be the same as the Brazilian format. Boa sorte!
More than a year ago
I need to use the brazilain format date in pdf file
More than a year ago
Hello, morning!
How can I a brazilian format date? If I use {DATE:Date-BR}, does it works? I would the format dd/mm/yyyy.
Regards,
Daoud