GlideRecord - setDisplayValue(String name, Object value)

Sets the specified field to the specified display value.

For a reference field this is the display value for the table. For a date/time this is the time in the caller's current timezone.

Table 1. Parameters
Name Type Description
name String Field name
value Object Display value for the specified field.
Table 2. Returns
Type Description
void

var gr = new GlideRecord('incident');
gr.get('46f09e75a9fe198100f4ffd8d366d17b');
gr.setDisplayValue('opened_at','2011-02-13 4:30:00');
gr.update();