JerryJ071847183
Tera Sage

Hello , Try something like this for example . Not tested but give a try by running on background script.

Example:

var date = new Date("2013-03-10T02:00:00Z");

date.toISOString().substring(0, 10)

 

Incase the Date doesn't work use the servicenow one GlideDate()

 

Mark my Answer as Correct and Helpful if it helps