Hi,

you can send the values to script include as it is. Also send the logged in user's date format to Script include function

in client script you can use this to get the user's date format

var format = g_user_date_format; // send this to ajax

Then inside script include convert that user given format to system one and get the duration

Can you share your script include code

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader