You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The date adapter was built to be very flexible. The price to pay (very low in my opinion) is that you have to built a DateAdapter class to make it work the way you want.
You can extend and customize the Material provided NativeDateAdapter if you're using the JS Date object. Basically all you want is to parse the date correctly because your locale represent dates differently from MM/dd/yyyy. See the material docs to learn about it (the three or four last topics).
Bug, feature request, or proposal:
Bug
What is the expected behavior?
When I open the calendar of the datepicker, it needs to show me the month of the selected day.
What is the current behavior?
When I open the calendar, it shows me octobre month instead of July but the day of the 10th of July is selected (today).
What are the steps to reproduce?
Set Windows in French and start the following plnkr :
https://plnkr.co/edit/ucGODHnqlaRi7IgoJNmt?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
I am using the version 2.0.0-beta7 of material.
The text was updated successfully, but these errors were encountered: