The toStringSortable method returns the current DayPilot.Date value as a sortable ISO 8601 string.
Declaration
DayPilot.Date.toStringSortable()Possible Values
string- ISO 8601 date/time string suitable for lexicographic sorting.
Notes
The returned string uses the sortable ISO 8601 representation of the current value.
Example
const date = new DayPilot.Date("2020-12-31T13:00:00");
const value = date.toStringSortable();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot