Pipe to format dates using Globalite.

{{ date | gdate }} Uses the default date format and current locale.
{{ date | gdate:'d' }} Uses the date format 'd' and current locale (11/5/2008).
{{ date | gdate:'F':'fr' }} Uses the date format 'F' and the locale 'fr'.

Hierarchy

  • BaseDatePipe
    • GlobalizeDatePipe

Implements

  • PipeTransform

Constructors

Properties

changeDetector: ChangeDetectorRef = ...
localeService: LocaleService = ...

Methods

  • Returns string | DateTimeFormatOptions

  • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

    Returns void

  • Parameters

    • input: undefined | null
    • Optionalformat: string
    • Optionallocale: string

    Returns null

  • Parameters

    • input: DateOnly | Date
    • Optionalformat: string

    Returns null | string

  • Parameters

    • input: DateOnly | Date
    • format: string
    • locale: string

    Returns string

  • Parameters

    • input: undefined | null
    • Optionaloptions: DateTimeFormatOptions
    • Optionallocale: string

    Returns null

  • Parameters

    • input: DateOnly | Date
    • Optionaloptions: DateTimeFormatOptions

    Returns null | string

  • Parameters

    • input: DateOnly | Date
    • options: DateTimeFormatOptions
    • locale: string

    Returns string

  • Parameters

    • input: Observable<undefined | null | DateOnly | Date>
    • Optionaloptions: DateTimeFormatOptions
    • Optionallocale: string

    Returns null | string

  • Parameters

    • input: Observable<undefined | null | DateOnly | Date>
    • Optionalformat: string
    • Optionallocale: string

    Returns null | string

  • Parameters

    • input: DateOnly | Date
    • optionsOrFormat: string | DateTimeFormatOptions
    • locale: string

    Returns string