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

PHOTO EMBED

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

Saved 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_copyCOPY

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