The toString() method returns a text representation.
DayPilot.Duration.toString([pattern]);
If the pattern is not specified, the following format will be used: "days.hours:minutes:seconds.milliseconds"
Pattern elements:
Formatted string representation of the duration.