javascript get current month start and end date
snippet in javascript

javascript get current month start and end date

user8220

var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);