Skip to content

mat-datepicker - unable to set date display format as dd-mm-yyyy #10731

@jayakrishna-v

Description

@jayakrishna-v

Bug, feature request, or proposal:

I would like to know how to set the date display format as dd-mm-yyyy using mat-datepicker

What is the expected behavior?

Date to be displayed as dd-mm-yyyy

What is the current behavior?

Date is currently displayed as d-m-yyyy

What are the steps to reproduce?

https://stackblitz.com/angular/nqbgnmoyrod?file=app%2Fdatepicker-formats-example.html

What is the use-case or motivation for changing an existing behavior?

We need to display the dates in dd-mm-yyyy across our application

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular CLI: 1.7.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.9

Is there anything else we should know?

There is no proper example or documentation or easier way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions