- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2020 01:39 PM
Dear SNC,
We ran gs.beginningOfToday() on the 25.10.2020 and got the following result:
2020-10-24 22:00:00
If I ran it today (27.10.2020), I will get the following result
2020-10-26 23:00:00
I need to get constant results, not a time difference of 1 hour, is there a method to accomplish this?
Thank you in advance,
Simon
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 12:43 AM
So how about your original question. Please follow-up on that first.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2020 01:44 PM
Hi there,
This could be due to change in time, like daylight savings time, which was again on the 25th of October. This would explain the 1 hour difference.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2020 02:43 PM
Hi Simon,
By default gs.beginningOfToday() gives GMT
Can you try this:
gs.beginningOfToday().getDisplayValue();
For current time you can try:
new GlideDateTime(gs.nowDateTime());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2020 10:32 PM
So what is it actually that you are after doing with this date? Do you just want the system date like you shared? Or do you actually want the local date/time?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 12:40 AM
Dear Mark, I need to add two values and add the current date
1970-01-01 05:00:00
1970-01-01 02:30:00