0

var ajax = new GlideAjax('ClientDateTimeUtils');
ajax.addParam('sysparm_name','getNowDateTime');
ajax.getXMLAnswer(doSomething);

function doSomething(answer){
alert(answer);

}

Get Current date/time in Client Script ServiceNow
admin Changed status to publish December 26, 2023