-
Notifications
You must be signed in to change notification settings - Fork 84
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
Invalid input when manual modification with specific localization #24
Comments
Hi,
Also, there should be a datetimeInput in the parse object, because if you use date and datetime types at the same time, there is confusion on the format. |
I have added the MAT_DATETIME_FORMATS to my module and changed
into
Now the datetimepicker only display the date and not the time. I think it is related to your last sentence but i didn't understand what you meant by date and datetime confusion. Is it related to the js Date type? |
Date(time) parsing with the native date implementation is not supported, this is a limitation of the native date and the INTL API . If you want to display and parse a certain datetime format, you have to use the moment adapter and set the |
Ok thanks! |
Hello,
I'm using a specific localization for my datetime picker, the display is correct and if I'm using the picker it works well. However, if I'm trying to modify directly the date, the input is invalid while the date entered is correct in its localization format.
App.component.ts
App.component.html
App.module.ts
The text was updated successfully, but these errors were encountered: