Scoped GlideDate - getValue()

Gets the date value stored in the database by the GlideDate object in the internal format, yyyy-MM-dd, and the system time zone, UTC by default.

Table 1. Parameters
Name Type Description
none
Table 2. Returns
Type Description
String The date value in the internal format and system time zone.
var gd =new GlideDate();
gd.setValue('2015-01-01');
gs.info(gd.getValue());

Output: 2015-01-01