var today_date = new Date(); var today_date_str = formatDate(today_date, g_user_date_format); alert(today_date_str);
Output:
how to get the current date in client script ServiceNow?
Expert Asked question July 19, 2023
var today_date = new Date(); var today_date_str = formatDate(today_date, g_user_date_format); alert(today_date_str);
Output: