API

 

ToDatetimePipe

Transforms a date value to a localized text of the date in the active language.

{{ value | toDatetime: options? }}

value: Date | number | string
The value to convert to localized date-time string.
options: string
An optional semicolon separated list of valid date-time localization parameters. See Date and time formatting.