GlideDateTime - setDisplayValueInternal(String dateTime)

Sets a date and time value using the internal format (yyyy-MM-dd HH:mm:ss) and the current user's time zone.

Table 1. Parameters
Name Type Description
dateTime String The date and time in internal format
Table 2. Returns
Type Description

Scoped equivalent

To use the setDisplayValueInternal() method in a scoped application, use the corresponding scoped method: Scoped GlideDateTime - setDisplayValueInternal(String value).

var gdt = new GlideDateTime("2011-02-02 12:00:00");
gdt.setDisplayValueInternal("2011-01-01 12:00:00");


2011-01-01 20:00:00