The milliseconds() method returns the millisecond part of the duration.
DayPilot.Duration.milliseconds();
The milliseconds part of the duration.
var ms = new DayPilot.Duration("2020-01-01T00:00:00", "2020-01-05T12:30:15.100").milliseconds(); // 100