Answers for "how to get last 3 days of month from js"

11

javascript first and last day of the 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 May-02-2020
2

javascript date 3 months ago

var d = new Date();
d.setMonth(d.getMonth() - 3);
Posted by: Guest on May-04-2020

Code answers related to "how to get last 3 days of month from js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language