Scoped GlideDateTime - equals(Object dateTime)

Compares a datetime with an existing value for equality.

Table 1. Parameters
Name Type Description
dateTime GlideDateTime object or String The datetime to compare.
Table 2. Returns
Type Description
Boolean Returns true if they are equal; otherwise, false.
var gdt = new GlideDateTime("2011-08-31 00:00:00");"2011-09-30 00:12:01"));

Output: false