JSFiddle - React, Tailwind, and code Playground
JavaScript
var x = daysInMonth(6,2014) ;
console.log(x);
console.log(x.getDay());
function daysInMonth(month,year)
{
return new Date(year, month-1 ,1);
}
var x = daysInMonth(6,2014) ;
console.log(x);
console.log(x.getDay());
function daysInMonth(month,year)
{
return new Date(year, month-1 ,1);
}