Answers for "get current month calendar javascript"

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
5

current month in javascript

// Find current month in JavaScript
const localDate = new Date();
const months = [
  'January',
  'February',
  'March',
  'April',
  'May',
  'June',
  'July',
  'August',
  'September',
  'October',
  'November',
  'December',
];
let currentMonth = months[localDate.getMonth()];
console.log(currentMonth);
Posted by: Guest on January-05-2021

Code answers related to "get current month calendar javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language