Skip to content

[feature] Improve datepicker documentation for date format #5722

@Robouste

Description

@Robouste

Bug, feature request, or proposal:

The documentation is not clear on how to change the date format

What is the expected behavior?

Have a better example on how to achieve it

What is the current behavior?

It says it's easy but it's not

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

Use the date picker on every application in the world

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

Material beta.8
Angular 4.2.4

I tried to change the format to "dd MM yyyy" or "dd MMMM yyyy" but without any success.

Stackoverflow Angular 2 Material 2 datepicker date format

This post shows an example (which is incredibly complex for what we want to achieve) but it's not working.

Metadata

Metadata

Assignees

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