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
Use this :
var date = new Date(); var intYear = date.getFullYear() - 1;