Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

RichaRose
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