How to get current date in email templates in designer?

Hi All,

I have created some email templates in Designer tool under Mail Templates section. one thing that is bothering me is how to get the DATE populated dynamically in the email templates so that the user will be seeing the date in the email when it receives his inbox.? The Date should be the same day when the email gets triggered. 

For suppose, if the email gets triggred today then the date in the email body should be 18-11- 2019 , if the email gets triggered tomorrow then it should  be 19-11-2019.

Thanks in Advance.!

Regards,

T.Sudhir

Parents Reply
  • Markus,

    I got this to work using a script and calling it from the mail template.

    One thing is I do not want timestamp. I tried the following but some reason it keeps showing timestamp.

    Public Function CCC_VI_BuildAttestation_Custom_Date() As Date
       Dim todaysDate As Date = Date.Now
       Return todaysDate
    End Function

    I also tried Date.Today and it shows the time but with 12:00 AM on all dates.

    Lu

Children