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
For strings:
curdate.substr(0, 6)+(curdate.substr(6)-1);
If you'd use a Date object, you could easily subtract a year with the set[Full]Year method.
set[Full]Year