
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2019 07:44 PM
Hi all,
I would like to display date field for every global user.
For example, if Japanese users see a data field A as 2019-02-11 in the Japanese morning,
At the same time I would like US users to see a date field A as 2019-02-10 in the US evening.
I know date/Time field is automatically calculate time in the database and display according to their local timezone. ( For example, update and created field.)
Best regards,
Tomoaki
Solved! Go to Solution.
- Labels:
-
Best Practices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2019 11:18 PM
var datetime = new GlideDateTime();
datetime.getDisplayValue() ---> This will give you what you need. The same date but in the current user's timezone.
You can use this link for more info.
https://www.linkedin.com/pulse/working-dates-servicenow-mrigank-gupta/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 01:05 AM
Thanks,
Can I apply yours to a date type field (Not for date/time) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 05:14 AM
Respect man 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 08:50 AM
hi I got the same requirement, i need to display time according to logged in user timezone.
where I should apply this logic in Client script or in business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 01:12 AM
Yes. You can