Scoped GlideDateTime - hasDate()

Determines if an object's date is set.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the object date is set; otherwise, returns false.
var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.info(gdt.hasDate());

Output: