We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Change the date format in Flow Designer Emails

Neal Patterson1
Tera Contributor

Hi all,

 

I've setup a New Starter Onboarding Catalog Item and are using Flow Designer to send out a customised email to teams who are responsible for onboarding new starters.

 

One issue I ran into though is the format of the email to advise of their start date.   It is sending it out in yyyy-mm-dd format,  however I would like to change it to dd-mm-yyyy.  Actually if there are any other options to display that date that would be handy.

 

I've checked the system properties and the instance is setup for dd-mm-yyyy.  

 

Any advice ? 

 

 

1 ACCEPTED SOLUTION

Saba Anjum
Tera Expert

To change the date format in flow, we can use transform function(fx).

PFB snap for reference.

SabaAnjum_0-1691345402099.png

 

Saba Anjum

View solution in original post

2 REPLIES 2

Saba Anjum
Tera Expert

To change the date format in flow, we can use transform function(fx).

PFB snap for reference.

SabaAnjum_0-1691345402099.png

 

Saba Anjum

Abhijit
Tera Expert

did you try setting date mail script ?

var dt = gdt.getDate().getByFormat("dd/MM/yyyy");
template.print(dt);