hello , I am facing a problem when i am trying to get the difference between two dates which is been taken from datepicker. now i am selecting two different dates with different month.for example d1 dd/mm/yyyy = 12/09/2008 d2 dd/mm/yyyy = 2/10/2008
now i am getting this value in the text box through datepicker.so i am doing it like this to convert it ,
But the problem is that it is not taking the proper selected september and october month else it is showing as only january month for any selected month Please help me out. Its urgent Thanks in advance.