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
{{ message }}
Repository navigation
[BUG] Datepicker - manually change day in input #6263
The input and the datepicker communicate incorrectly. If I select a date from the picker, it will be displayed DD/MM/YYYY.
Following this logic, if I try to manually modify the DD, when I open the datepicker, and if I set a value from 1-12, the corresponding month will be selected in the picker.
What is the expected behavior?
If the output date format of the datepicker is of format DD/MM/YYY, when I manually modify the day (DD) that day should be selected in the picker.
What is the current behavior?
If I modify the day, it modifies the month in the background.
@julianobrasil is correct. Once the new Angular i18n API is available we will be able to improve the NativeDateAdapter to handle this case better (#6030), but currently you'll need to create a custom DateAdapter
Activity
julianobrasil commentedon Aug 4, 2017
It's not a bug. You need to build a custom date adapter: https://plnkr.co/edit/jc4Ywu?p=preview
See the docs overview at the bottom, the "Internationalization" title.
mmalerba commentedon Aug 9, 2017
@julianobrasil is correct. Once the new Angular i18n API is available we will be able to improve the
NativeDateAdapterto handle this case better (#6030), but currently you'll need to create a customDateAdapterangular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.