var ajax = new GlideAjax('ClientDateTimeUtils');
ajax.addParam('sysparm_name','getNowDate');
ajax.getXMLAnswer(doSomething);
function doSomething(answer){
alert(answer);
}
Get Current Date in client Script ServiceNow
admin Changed status to publish December 26, 2023