Answers for "js get date today date to next month date"

11

javascript get current month start and end date

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
0

get next month js

let Month = 11 // according to Date's 0-11 month count
const d = new Date();
// can't make this inline bcos of .setMonth 's return value
d.setMonth(Month + 1)
Month = d.getMonth();
Posted by: Guest on July-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language