get the 1st day of the month

 var date=new Date();
         date.setDate(1);
         var strDate=date.toUTCString();
         var firstday=strDate.substring(0,3);