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's date is set, false otherwise.

Scoped equivalent

To use the hasDate() method in a scoped application, use the corresponding scoped method: Scoped GlideDateTime - hasDate().

var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.print(gdt.hasDate());

Output:

true