Query on getDayOfMonth() method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2012 12:45 AM
Hi,
When we run the following code in one of our server side scripts we get the output as 1
var gdt = new GlideDateTime("2012-8-02 06:00:00");
gs.log(gdt.getDayOfMonth());
Whereas when we run the following code in one of our server side scripts we get the output as 2
var gdt = new GlideDateTime("2012-8-02 07:00:00");
gs.log(gdt.getDayOfMonth());
Could you advice why this difference in the Day of month?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2012 05:46 AM
I ran both of these snippets of code on my system and they both returned 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2012 06:53 AM
Hey Jason,
I am also getting same output as tj getting. 1,2 is the output for me.
ND
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2012 07:13 AM
On what version/build of ServiceNow is your instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2012 02:53 AM
Build on our SN instance - glide-october2011-10-28-2011__patch2-hotfix6-02-28-2012
Version 3