javascript ottieni il giorno corrente del mese
new Date().getDate();//gets day of month (1-31)
javascript data primo giorno del mese corrente
var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);