The equals method returns true when the current value matches another DayPilot.Date value.
Declaration
DayPilot.Date.equals(another)Parameters
another(DayPilot.Date) - value to compare with the current instance.
Notes
The method compares the current value with another DayPilot.Date object and returns a boolean result.
Example
const first = new DayPilot.Date("2025-03-01T00:00:00");
const second = new DayPilot.Date("2025-03-01T00:00:00");
const same = first.equals(second);See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot