- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:09 PM
I want this date in DD/MM/YYYY format to show on portal
Solved! Go to Solution.
- Labels:
-
Delegated Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:24 PM
Hello Amol,
If you want to get the date in this format (dd/mm/yyyy) to show on SP, then return the date from the backend like this
var gdt = new GlideDateTime("2019-11-14 12:33:50");
var myDate = gtd.getDate();
var gd = new GlideDate();
gd.setValue(myDate);
gs.info(gd.getByFormat("dd-MM-yyyy"));
Mark the comment as a correct answer and helpful once worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2019 12:37 AM
thanks it worked

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2019 01:04 AM
Great. Could you also mark the comment as a correct answer so that the question is moved to the solved list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 11:40 PM
var gdt = new GlideDateTime("2019-11-14 12:00:00");
gdt.setDisplayValue("14-11-2019 12:00:00",
"dd-MM-yyyy HH:mm:ss"); //uses current user session time zone (US/Pacific)
gs.print(gdt.getValue());