karthik73
Mega Guru

Hi Joe,



You can update the time on the field by GlideTime() API



The below script will update the time on the gliddate object to 06:45:20, you can replace that with the time you are looking for. You may need to look at the time zone offset too.



var gdt = new GlideDateTime(gr.variables.date);


var mytime = new GlideTime();


mytime.setValue("06:45:20");


gdt.add(mytime);


gs.print(gdt.getValue());