I need to find out the previous year date from current date and then set as minDate in jQuery UIdatepicker in javascript
My date formaqt is dd-mm-yy
dd-mm-yy
I had the same problem with Angular 7. Following is my solution in typescript.
new Date(new Date().setFullYear(new Date().getFullYear() - 1))