I'm trying to store one date in my database with the [Date Picker Component for Kendo Ui][1]
So, this component format my selected data like this:
2019-07-23T00:00:00
I try to catch the return of the saved object and insert in my actual object, but i receive:
> Error: The 'value' should be a valid JavaScript Date instance. Check
> http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json
> for possible resolution.
My component:
<kendo-datepicker [(value)]="ReferenciaMktDataDisponivel" ></kendo-datepicker>
Also tried:
let dataDisponibilidade = new Date(this.formGroup.get('ReferenciaMktDataDisponivel').value)
this.formGroup.get('ReferenciaMktDataDisponivel').setValue(dataDisponibilidade)
My console.log of this date: `2019-07-17T00:00:00`
Can someone help me ?
[1]: https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/
So, this component format my selected data like this:
2019-07-23T00:00:00
I try to catch the return of the saved object and insert in my actual object, but i receive:
> Error: The 'value' should be a valid JavaScript Date instance. Check
> http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json
> for possible resolution.
My component:
<kendo-datepicker [(value)]="ReferenciaMktDataDisponivel" ></kendo-datepicker>
Also tried:
let dataDisponibilidade = new Date(this.formGroup.get('ReferenciaMktDataDisponivel').value)
this.formGroup.get('ReferenciaMktDataDisponivel').setValue(dataDisponibilidade)
My console.log of this date: `2019-07-17T00:00:00`
Can someone help me ?
[1]: https://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/