Hi I am trying to use kendo date picker for angular. Everything works fine but on page load I want to bind current date like 4 August 2021 to display automatically. I tried different ways to do that but nothing works .

Here is my markup for the date picker,

<kendo-datepicker [(ngModel)]="fromDate" format="dd MMMM yyyy"> </kendo-datepicker> 

enter image description here

1 Answer

So,Finally I Found a solution . On ngOnInit I added this piece of code

this.fromDate = new Date(); 

enter image description here

And found my desired output

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.