Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date Format #94

Open
Cris13 opened this issue May 15, 2017 · 1 comment
Open

Date Format #94

Cris13 opened this issue May 15, 2017 · 1 comment

Comments

@Cris13
Copy link

Cris13 commented May 15, 2017

The default date format it says to be YYYY-MM-DD, although the date is always displayed using "/" and not "-". Is there a way of changing it?

@ilyakrasnov
Copy link

I've come across this issue as well. Momentjs was introduced in this pull request, so you can define your own date formats using:
dateFormat="YYYY-MM-DD"
or something else.

However the npm package is still not updated. We downloaded the plugin directly from github. Change the respective package.json line to be:

"angular2-material-datepicker": "git+https://[email protected]/koleary94/Angular-2-Datepicker.git",

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants