The toString() method should work:
> new DayPilot.Date("2025-06-10T00:00:00").toString("yyyy-MM-ddThh:mm:ss");
"2025-06-10T00:00:00"
If you want to convert it to Date
, you can use toDateLocal() to get a representation of the date/time value in the local timezone.