🚨 Announcing Vendure v2 Beta

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

Members

constructor

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

transform

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