Scoped GlideDateTime - getErrorMsg()

Gets the current error message.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The error message.
var gdt = new GlideDateTime(); 
gdt.setDisplayValue("2011-aa-01 00:00:00"); 
gs.info(gdt.getErrorMsg());

Output: Could not parse DateTime: 2011-aa-01 00:00:00