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

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