DanielYKPan / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
563 stars 358 forks source link

Problem when integrate with Reactive Forms #533

Open naveenatti opened 5 years ago

naveenatti commented 5 years ago

@DanielYKPan i am trying to integrate with angular reactive forms(angular version 5.2.9), but i am unable set datepicker #value while selecting the date it is getting empty the form control value. can you please provide me the example to integrate with angular reactive forms.

thomstaal commented 5 years ago

Same here, .setValue() doesnt work..

ludusrusso commented 5 years ago

Same here, any help?

helgablazhkun commented 5 years ago

The same for me

thomstaal commented 5 years ago

@ludusrusso @helgablazhkun You're probably trying to set the value with a date string, did the same. You should convert to date object before setting the field.

k2ibegin commented 5 years ago

@thomstaal finally i can go to bed, was scratching my head for like last 2 hours .. Thank you