Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    Thanks man! I had the same problem and I used just 'nl' before. With 'nl-NL' it works properly. Commented May 16, 2019 at 12:12
  • 2
    yep this does work, but you need to import to your app.module as well import { MAT_DATE_LOCALE } from '@angular/material'; Commented Sep 11, 2019 at 17:49
  • 1
    Great.. probably the easiest way...thanks for sharing Commented Sep 26, 2019 at 23:45
  • 1
    It will help to change display value not actual Date value. I am getting Date value like this format "Fri Oct 30 2020 00:00:00 GMT+0600 (Bangladesh Standard Time)" Commented Oct 30, 2020 at 5:25
  • 1
    I have the same problem as explained. How can I set this if my app is standalone and doesn't have app.module.ts. Commented Oct 26, 2023 at 11:50