var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
Can Somebody please explain this code why we give 1 in firstDay and in and +1,0 in the lastDay What it will do..... I know it will give first date and last date i need why we are using that...