Topic: Having problem with MDB date picker's two way binding when using [(ngModel)] with a javascript Date object
Subrata Paul pro asked 6 years ago
Hi Support,
Having problem with MDB date picker's two way binding when using [(ngModel)] with a javascript Date object.
Ex:
Subrata Paul pro answered 6 years ago
Arkadiusz Idzikowski staff answered 6 years ago
Hello,
Please try to pass object instead of string to ngModel. For example:
model = { date: { year: 2018, month: 10, day: 15 } };
Subrata Paul pro commented 6 years ago
Dear Arkadiusz Idzikowski,
I'm passing java script Date object .
Arkadiusz Idzikowski staff commented 6 years ago
Please show me the example of the object you pass to the ngModel variable.
Did your method of date modification work in previous versions or is it feature request?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: Windows
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No