Add date(day/month/year) to notification

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

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

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

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.

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}

I’m pretty confident that formatting is evaluated the same way as the dateFormat expression function @Mr.K001 mentioned - so you can use the same format strings described in the manual.

1 Like