Scoped GlideDate - getDisplayValue()

Gets the date in the current user's display format and time zone.

Table 1. Parameters
Name Type Description
none
Table 2. Returns
Type Description
String The date in the user's format and time zone. Keep in mind when designing business rules or script includes that this method may return values in different formats for different users.
var gd =new GlideDate(); 
gd.setValue('2015-01-01');
gs.info(gd.getDisplayValue());

Output: 2015-01-01