0
var gsf = new GlideDateTime(source.field_name); 
return gsf.getDate();
How to Convert string to date field ServiceNow?
Working Code Asked question July 21, 2023