Get only date value from date/time field

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2016 02:47 AM
I have a Date/Time field which has value like 2006-10-12 23:17:30
I want date alone from the field as i don't want the time appended there. Only 2006-10-12
How to get the value from glide script (server side) ?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2018 01:51 AM
var dateTime='2018-12:16:12:30';
var grDate = new GlideRecord('dateTime');
var date=grDate.getDate()://gives only date.
Regards,
Manjusha Bangale