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

Need Problem record email notification with Created Date(Don't include time)

RichaRoseM
Tera Contributor

With this I am not able to see created date.

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,

          /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,

          /* Optional GlideRecord */ event) {

 

var gdt = new GlideDateTime(current.getValue('sys created_on'));

var date = gdt.getDate();

template.print(date); })

(current, template, email, email_action, event);

 

RichaRose_0-1724135135065.pngRichaRose_1-1724135154703.png

 

0 REPLIES 0