DayPilot.Date.clone

The clone() method returns a new DayPilot.Date object with the same value.

Declaration

DayPilot.Date.clone()

Return Value

Returns a new DayPilot.Date instance representing the same point in time.

Notes

This method is obsolete. DayPilot.Date objects representing the same point in time are identical, so cloning is unnecessary.

Example

const copy = new DayPilot.Date("2025-03-10").clone();