# Add date(day/month/year) to notification

**URL:** <https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768>\
**Category:** Ignition\
**Created:** [October 25, 2017, 2:17pm UTC](https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768 "2017-10-25T14:17:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fivecents](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fivecents](https://forum.inductiveautomation.com/u/fivecents)\
**Post date:** [October 25, 2017, 2:17pm UTC](https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768/1 "2017-10-25T14:17:43Z")

</div>

At {eventTime|hh:mm:ss} works for time(hours, minutes, seconds) but would like to add day, month and year.

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [October 25, 2017, 2:24pm UTC](https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768/2 "2017-10-25T14:24:29Z")

</div>

I’m a little confused on this {eventTime|hh:mm:ss} . wait, is that in reporting?

---

<div class="post-metadata">

**Author:** ![fivecents](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fivecents](https://forum.inductiveautomation.com/u/fivecents)\
**Post date:** [October 25, 2017, 2:43pm UTC](https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768/3 "2017-10-25T14:43:53Z")

</div>

Alarm Tag Email Notification Properties, I would like to get day, month and year in email Subject or Message

---

<div class="post-metadata">

**Author:** ![Mr.K001](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mr.K001](https://forum.inductiveautomation.com/u/Mr.K001)\
**Post date:** [October 25, 2017, 2:52pm UTC](https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768/4 "2017-10-25T14:52:05Z")

</div>

You subject or message are basically strings with some variables in them correct? just use expression and you can use one of the many timing options available for expression language OR you can use a tag value if you have a time tag somewhere that is in the format you want. if now you can just use “dateFormate(now(),“YYYY-MM-dd hh:mm:ss”)” . That should give you what you need.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 25, 2017, 2:58pm UTC](https://forum.inductiveautomation.com/t/add-date-day-month-year-to-notification/15768/5 "2017-10-25T14:58:21Z")

</div>

The text following the vertical bar/pipe _is_ the formatting argument; so `{eventTime|hh:mm:ss}` returns hours:minutes:seconds, but you could just as easily reformat to `{eventTime|yyyy-MM-dd hh:mm:ss}`

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c7b7152e21886a8963e5ddbcf30d79327b8a1090.png)  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a1e60472b2453ba9b8d1c01c3a2130710da3e086.png)

I’m pretty confident that formatting is evaluated the same way as the [`dateFormat`](https://docs.inductiveautomation.com/display/DOC79/dateFormat) expression function @Mr.K001 mentioned - so you can use the same format strings described in the manual.
