Hi lakshmi!!
plz check
http://www.javascriptkit.com/javatut...fference.shtml
Steps:
1>split the dates using "-" and get the values of date,month ,year
2>based on Apr,Jun etc u can get the value of the month (u will need to put these Apr,May vaule in Array etc)
3>created Date object
4>use getTime function and substract from_dt -to_dt
Hope this will help you
Cheers!!
Cheers :)
vinod