How to acess different date format in js : I have 2 variables  

    var myDate1 = "3.6.2015" AND var myDate2 = "6.2014"
    var date1= new Date(myDate1);
    var date2= new Date(myDate2);

Here myDate2 donot contain days. It contains only year and month. I can't `alter(date2)`.

How to do that.I am very new to js

**Plz help**    
