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

[Datepicker] formControl value should have time changed, not only the date #14783

argygkou opened this Issue Jan 10, 2019 · 0 comments


None yet
3 participants
Copy link

argygkou commented Jan 10, 2019

What is the expected behavior?

Binding mat-datepicker to FormControl changes the date but not the time resulting in the same time in every date object I save. example: "YYYY-MM-DDT00:00:00.000Z"
So if I have to compare values from the same date I can't do it.
Is there any option so the datePicker can give the exact time when I choose a date?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7.2.0, Material 7.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment