Answers for "js get last month first day"

4

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);
Posted by: Guest on February-10-2021
2

get last day of month javascript

var today = new Date();
var lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1, 0);
Posted by: Guest on February-12-2021

Code answers related to "js get last month first day"

Code answers related to "Javascript"

Browse Popular Code Answers by Language