how to use the date function in client side in scoped application

rajamusani
Tera Contributor

var now = new Date();
please suggest if body come across this situation.

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@rajamusani Could you please confirm the use case here? The javascript date object available in client script is slightly different that GlideDate available on the server side.

Ankur Bawiskar
Tera Patron
Tera Patron

@rajamusani 

what's your business requirement here?

the Date() class is javascript class

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

whenever my case ticket resolved on the case form ,(resolved)Date field should populate with current time stamp.

so i am trying with client script to populate the resolved date .