Error constructing DayPilot.Date()
1 years ago.
Hi,
I’m trying to convert a date (or date string) to a DayPilot.Date. This to assign the daypilot.date to the start of an event. However i am not capable of creating a new DayPilot.Date.
I’ve tried everything:
let newDate = new DayPilot.Date() => TypeError: Date is not a constructor
let newDate = new DayPilot.Date(angularDateType) => TypeError: Right-hand side of 'instanceof' is not callable
let newDate = new DayPilot.Date("2025-01-01") => Error: DayPilot.Date - Unable to parse ISO8601 date/time string: 2025-01-01
So i’m wondering what’s the correct way of creating a new DayPilot.Date object?
Kind regards,
Wouter
DayPilot