Skip to content

API Reference


API Reference / @dasch-ng/utils / intl/src / IntlDatePipe

Class: IntlDatePipe ​

Defined in: libs/ng/utils/intl/src/lib/intl-date.pipe.ts:23

Formats a date with Intl.DateTimeFormat. Accepts a Date, a timestamp or an ISO string; returns null for missing or invalid input.

Example ​

html
{{ createdAt | intlDate }}                                       <!-- Nov 6, 2026 -->
{{ createdAt | intlDate: 'long' : 'de-DE' }}                     <!-- 6. November 2026 -->
{{ createdAt | intlDate: { dateStyle: 'short', timeStyle: 'short', timeZone: 'UTC' } }}

Extends ​

  • IntlPipeBase

Implements ​

  • PipeTransform

Constructors ​

Constructor ​

new IntlDatePipe(): IntlDatePipe

Returns ​

IntlDatePipe

Inherited from ​

IntlPipeBase.constructor

Methods ​

locale() ​

protected locale(locale?): string

Defined in: libs/ng/utils/intl/src/lib/formatter-cache.ts:29

Parameters ​

locale? ​

string

Returns ​

string

Inherited from ​

IntlPipeBase.locale


transform() ​

transform(value, format?, locale?): string | null

Defined in: libs/ng/utils/intl/src/lib/intl-date.pipe.ts:24

Parameters ​

value ​

string | number | Date | null | undefined

format? ​

IntlDateFormat = 'medium'

locale? ​

string

Returns ​

string | null

Implementation of ​

PipeTransform.transform

Released under the MIT License.