Skip to main content

dateTimeToString

Stentor API Reference


Stentor API Reference / stentor-utils/src / dateTimeToString

Function: dateTimeToString()

dateTimeToString(dateTime): string

Defined in: packages/stentor-utils/src/dateTime.ts:58

Converts a date time object to a string.

Either a single date (2020-07-19T23:59:59) or a range (2019-07-19T00:00:00 --> 2020-07-19T23:59:59).

Parameters​

dateTime​

Either DateTime or DateTimeRange to convert to a string

DateTimeRange | DateTime

Returns​

string