How to Convert Data/Time to Date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 06:58 AM
Hi All.
In one of form we need to change the date-time format to date format for one of my field.
09-Nov-2017 07:55:43 should be changed to 09-Nov-2017 .
As it is a Data type filed i think its not easy to change the Data type.
Do we have any script or steps to display my date-time to Date.(09-Nov-2017 07:55:43 to 09-Nov-2017) .
Thank you very much in advance.
regards
Aarav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 07:09 AM
Hi Aarav,
I doubt something of that sort is possible. You may refer link Date/Time fields display as Date Only

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 07:09 AM
hi,
var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.print(gdt.getDate());
try this example.