Skip to main content

toTime

function toTime(value, language?): string;

Formats a value as a HH:mm time string.

Parameters​

ParameterTypeDescription
valuenumber | Datethe date to format
language?stringthe language to format for, usually i18n.language. When omitted the runtime default locale is used, which does not follow the language selected in the app.

Returns​

string