- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 07:23 AM
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?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 08:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 07:42 AM
Hello Dipesh,
It seems that you need to use GlideDateTime on a client script, when it is only supported from server side: GlideDateTime - ServiceNow Wiki
What are your full requirements for your script?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 07:46 AM
Hi Edwin
You're right.
Just realized the mistake.
Trying to print the GlideDateTime object in a UI action now.
But it is not printing. I am on Dublin version.
Any comments?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 08:02 AM
Hi Dipesh,
Make sure the client box is unchecked in UI Action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 08:13 AM
Hi Pradeep
Thanks.. Got it...