0 points

Get the First and Last Day of a Given Month using JavaScript


dashboard

Sun Nov 08 2020 09:18:17 GMT+0000 (UTC)

Posted by @ali_alaraby

// GET THE FIRST AND LAST DATE OF THE MONTH.
        var FirstDay = new Date(year, month, 1);
        var LastDay = new Date(year, month + 1, 0);
content_copy Copy

https://www.encodedna.com/javascript/first-and-last-day-of-a-given-month-in-javascript.htm