Bug (mdDatepicker) Date editing problem
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
When editing the date, the selected value is incorrect and this is due to the language of the browser used.
What is the current behavior?
navigator.language
"fr"
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.1.3, Material 2.0.0-beta.6
Is there anything else we should know?
The bug is due to the language of the browser for the written in french the month becomes the day and the day becomes the month.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Angular Issue with date in datepicker - Stack Overflow
When I set the date I see correctly the date selected in the field, but when I save the date, making a Post...
Read more >Bug: Intermittent datepicker errors when editing entries
When I first publish an entry, leaving the entry date at the default current value and setting an expiration date, the datepicker works...
Read more >Pickers — KivyMD 0.104.2 documentation
Error text that will be shown on the screen in the form of a toast if the minimum date range exceeds the maximum....
Read more >angular-formly - JS Bin - Collaborative JavaScript Debugging
Possibly related: "MD Datepicker shows up red underline even though the date is valid". Note the md-is-error attribute on the md-datepicker.
Read more >Demos > Datepicker - AngularJS Material
Sep 2022 Sep 2022 Sep 2022 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@naoufelus , take a look at this plunker, it’s working: https://plnkr.co/edit/FlgGpjqyDlypas0VZJzo?p=preview
Basically it’s a CustomAdapter class extending the Native one. It’s configured to Brazilian portuguese, but you can change the language to french. I think it will work for you (because the date format is simillar - dd/MM/yyyy).
I owe you a beer @julianobrasil