ReferenceError: GlideDateTime is not defined function

dipesh1
Kilo Contributor

I get the following error on running this code:

var start = new GlideDateTime("2011-01-01 12:00:00");

var end = new GlideDateTime(start);

alert(end);

error:ReferenceError: GlideDateTime is not defined function

Any Ideas?

1 ACCEPTED SOLUTION

Hi Dipesh,



Make sure the client box is unchecked in UI Action.


View solution in original post

6 REPLIES 6

Perfect


Please mark the response as correct/helpful if this answers your question.


or maybe use JS function if you are in clientside scripting:

var mynow = new Date();