Date comparison not working as expected

Date comparison not working as expected

HI,

Currently working on jQuery datepicker and i am trying to compare the dates and adding the years of exp currently with my code where i am trying to compare the from date and to date if the to date is greater than from date it should say kindly enter the to date should be greater than from date

http://jsfiddle.net/karthic2914/bqgjro6d/54/