Get only date value from date/time field

Community Alums
Not applicable

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

manjusha
Kilo Guru
var dateTime='2018-12:16:12:30'; var grDate = new GlideRecord('dateTime'); var date=grDate.getDate()://gives only date. Regards, Manjusha Bangale