javascript date first day of current month code example
Example 1: javascript date first day of current month
var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
Example 2: javascript get current day of month
new Date().getDate();//gets day of month (1-31)