The today() static method returns a DayPilot.Date object corresponding to the start of the current day.
DayPilot.Date.today()Returns a DayPilot.Date object corresponding to the start of the current day.
This is a static method and needs to be invoked using the full DayPilot.Date.today() prefix.
const today = DayPilot.Date.today();