Hello I have date in this format 03/08/12
where 03 is month, 08 is day and 12 is year. Now I want to add days in it. I have tried following but not getting the exact result
checkindate = new Date($("#checkindate").val());
checkindate.setDate(checkindate.getDate()+no_of_nights);
$("#checkoutdate").val((checkindate.getMonth()+1)+"/"+checkindate.getDate()+"/"+checkindate.getYear());
But is is giving unexpected result and I am unable to understand in which part of date it is adding. Can Any body tell me how can I do this?
Regards