O3 Framework / formatDatetime
formatDatetime(
date,options?):string
Defined in: packages/framework/esm-utils/src/dates/date-util.ts:416
Formats the input into a string showing the date and time, according
to the current locale. The mode parameter is as described for
formatDate.
This is created by concatenating the results of formatDate
and formatTime with a comma and space. This agrees with the
output of Date.prototype.toLocaleString for most locales.
Date
The date to format.
Partial<Omit<FormatDateOptions, "time">>
Optional formatting options (same as formatDate, except time is always included).
string
The formatted date and time string.