The equals method returns true when the current value matches another DayPilot.Date value.
DayPilot.Date.equals(another)another (DayPilot.Date) - value to compare with the current instance.
The method compares the current value with another DayPilot.Date object and returns a boolean result.
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);