How To get Start and End Date of current month

const date = new Date(); // get current date
const month = date.getMonth();
const year = date.getFullYear();
const startDt = new Date(year, month, 1);
const endDt = new Date(year, month + 1, 0);

Leave a comment

Your email address will not be published. Required fields are marked *