I know, title isn't probably clear, but I have this code:
var date1=new Date();
alert(date1);
var date2=date1;
alert(date2);
date2.setMonth(date1.getMonth() + 6);
alert(date1+" - "+date2);
Why date1 change? I think date1 should remain the current date and date2 six months later ...
Thanks