
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2021 04:52 AM
if the date is below
2021-07-03 09:30:00
|
then getDisplayValue is giving 2021-07-03 13:00:00
Please help
Regards,
Debasis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2021 05:14 AM
getDisplayValue() will always print the value as per user's timezone or the timezone present in the user settings.
Can you explain where you are using that and what is not working?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2021 06:03 AM
Hope you are doing good.
Did my reply answer your question?
Would you mind marking the best matching answer as correct and helpful, to close this thread?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2021 04:57 AM
Hi,
Please check below links:
getDisplayValue on date fields get the date Value based on logged In users time zone.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2021 05:14 AM
getDisplayValue() will always print the value as per user's timezone or the timezone present in the user settings.
Can you explain where you are using that and what is not working?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2021 06:15 AM
Not read the whole thread, so apologies if this is already covered.
getDisplayValue on date field gives the dates in the logged in user's time zone and format. Maybe that is why you are seeing the difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2023 06:58 PM
Please try "getDisplayValueInternal()"
getDisplayValueInternal() gets the display value in the internal format.
(Returns the date and time values for the GlideDateTime object in the current user's time zone and the internal date)