How to calculate Date/Time difference on client side?

Andrii
Kilo Guru

there are functions to calculate difference of Date/Time type such as dateDiff ... but they are server-side, is there such for client-side?

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee
3 REPLIES 3

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi,



You may find the below link helpful.


https://community.servicenow.com/thread/147831


Akshay37
Mega Guru

As server side GlideDate and GlideDateTime has more functions as compare to client side Date ... try using GlideAjax call by passing both the dates to server side and send response back as a difference from server side.