0

I want to Append month to year (2020) in Kendo Datepicker on left navigation pane. So the final output should be Jan-2020.

This is in Angular project.

enter image description here

1 Answers1

0

I also faced the same problem. I solved problem. I hope it helps you

.ts ====>>

  async yearCalc(){
 this.now=moment().year();
  debugger;
   for(var i=2008;i<=this.now+5;i++)
   {
     
        this.year.push(i);
   
   }
}

.html====>>

 <kendo-dropdownlist style="width:300px;" [data]="year.reverse()" [value]="now">
  </kendo-dropdownlist>
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 03 '22 at 13:19