September 2017
Intermediate to advanced
408 pages
9h 25m
English
The now() method of the GlideSystem class returns the current date of the server; for example:
var gr = new GlideRecord("incident");
if (gr.get(event.parm1.toString())) {
// Set the value of the date field using setValue method of GlideRecord object
gr.setValue('u_date1',gs.now() );
gr.update();
}
Read now
Unlock full access