Get first and last day of current month using moment.js
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.1/moment.js"></script> const now = moment(); console.log("Start of month",now.startOf('month').toString(),"End of month", now.endOf('month').toString());