Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
Angular Date Pipe en-NZ

I am using the angular date picker and have set the locale to en-NZ in the app module like so.

  {
        provide: LOCALE_ID,
        deps: [LocaleService],      //some service handling global settings
        useFactory: (LocaleService: { locale: string; }) => LocaleService.locale
    },

I am using the shortDateFromat but angular date pipe is not formating to the correct locale.

Expected: 6/9/21
Actual: 9/6/21

It appears that it is always formatting to the en-US locale.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can add in your app.module.ts this:

import {  LOCALE_ID } from '@angular/core';
...
@NgModule({
  providers: [{ provide: LOCALE_ID, useValue: 'en-nz' }],
})

It works for me.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!