- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 03:39 AM
I am using glidedatetime function and getting the date/time....it is coming in gmt timezone,but i need in ist.
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 04:16 AM
you can do it like this.
//assuming start is the date/time object as per above code
var st_date = start.getDate();
var st_time = start.getTime();
var start_date = st_time.getByFormat("HH:mm") +" "+ st_date.getByFormat("dd MMMM YYYY");
gs.print(start_date);
Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.
Regards,
Asif
2020 ServiceNow Community MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 04:24 AM
Hey Dell,
You can try this-
Packages.java.util.TimeZone.getTimeZone("IST"); //sets to IST TO
Packages.java.util.TimeZone.getTimeZone("GMT"); //sets to GMT and check.
Please mark correct or helpful if this works.
Thanks
Swapnil