Reputation: 313
I've got the following DatePicker in a form:
<kendo-datepicker
[format]="'dd.MM.yyyy'"
[(ngModel)]="contract_start"
name="contract_start"
></kendo-datepicker>
I set the date in typescript like this to the first day of next month:
public contract_start = new Date();
this.contract_start.setMonth(this.contract_start.getMonth()+1,1);
When I submit the form, the value is not like "dd.MM.yyyy" instead its the javascript format like "2018-03-01T12:21:52.206Z"
In the jQuery+Kendo Version I had the parameter "parseFormat" to set the correct date format.
I was not able to find out how to solve this with the Angular release.
I'm using Angular5 and the latest kendo-ui library via npm.
Thanks for your help.
Greetings eXe
Upvotes: 1
Views: 2252
Reputation: 313
I didn't found the alternative to "parseFormat" in the angular release of kendoUI.
So I converted the javascript timeobject on the backend.
Upvotes: 1