DayPilot.Date.toStringSortable

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

DayPilot.Date Class

ISO 8601

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript