Scoped GlideDate - setDisplayValue(String asDisplayed)

Sets a date value using the current user's display format and time zone.

Table 1. Parameters
Name Type Description
asDisplayed String The date in the current user's display format and time zone. The parameter must be formatted using the current user's preferred display format, such as yyyy-MM-dd.
Table 2. Returns
Type Description
void
var gd =new GlideDate();
gd.setDisplayValue("2011-01-01");
gs.info(gd.getValue());

Output: 2011-01-01