How servicenow store the date and time at db level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 02:42 AM
HI All,
Please let me know how ServiceNow store the value at database level and also please let me know about the what is this date format.
20230926T050000Z

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 03:08 AM
Is this data coming from an import or something?
I would personally just create 2 datetime fields on the table, and transform the iso datetime strings to the datetime fields. This way you can use the data in any way you like.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 01:58 AM
This critical piece of information isn't at all clear in the documentation - how to get a GlideDateTime object from a GlideRecordField..
gdt = current.date_field.getGlideObject();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 02:48 AM
Hi @pratapdalai
May i know what is use case for this , because SN provide the user specific date format easy to understand and use.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 03:05 AM
we will never know how ServiceNow stores it. It's a java based application and the code behind it is hidden from us and not accessible to even admins/developers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader