1.0.3 • Published 2 years ago
months-between-two-dates v1.0.3
Get array of months between any two given dates by passing starting date and ending date as argument in package function.
#Installing:
npm i months-between-two-dates
#Example input:
const getmonthdiff = require("months-between-two-dates");
let months = getmonthdiff("01-01-2021", "02-04-2022");
console.log(months);
#Example output: