Scoped GlideDate - setValue(String o)

Sets the date of the GlideDate object.

Table 1. Parameters
Name Type Description
o String The date and time to use.
Table 2. Returns
Type Description
void
var gd = new GlideDate(); 
gd.setValue('2015-01-01');
gs.info(gd.getValue());

Output: 2015-01-01