GlideDateTime - getDisplayValueInternal()

Gets the display value in the internal format (yyyy-MM-dd HH:mm:ss). This method is useful for date/time fields, but not for date fields.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The date and time values for the GlideDateTime object in the current user's time zone and the internal date and time format of yyyy-MM-dd HH:mm:ss.

Scoped equivalent

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

// Wednesday
var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.print(gdt.getDisplayValueInternal());

Output:

2011-08-31 01:00:00