Skip to main content

LocaleDatePipe

LocaleDatePipe

A replacement of the Angular DatePipe which makes use of the Intl API to format dates according to the selected UI language.

Example

{{ order.orderPlacedAt | localeDate }}
Signature
class LocaleDatePipe extends LocaleBasePipe implements PipeTransform {
constructor(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef)
transform(value: unknown, args: unknown[]) => unknown;
}
  • Extends: LocaleBasePipe

  • Implements: PipeTransform

constructor

method
(dataService?: DataService, changeDetectorRef?: ChangeDetectorRef) => LocaleDatePipe

transform

method
(value: unknown, args: unknown[]) => unknown