Background Script to Query current date and time?

Charles Hong
Mega Expert

Hi - 

I remember there was a background script that i could run (gs.datetime.util(); --> something like that) to get the current systems Date/Time. 

 

Does anyone know what that exact script maybe? anything would help. Thanks. 

1 ACCEPTED SOLUTION

raja11
Giga Contributor

Hi

var gr = new GlideDateTime();

gs.print(gr)

In background script it gives a current date and time

 

Regards

Raja

View solution in original post

2 REPLIES 2

raja11
Giga Contributor

Hi

var gr = new GlideDateTime();

gs.print(gr)

In background script it gives a current date and time

 

Regards

Raja

That works, thanks a lot.