months-between-two-dates
v1.0.3
Published
Get all month names along with year by providing starting date and ending date
Downloads
2
Readme
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:
[ "January'2021", "February'2021", "March'2021", "April'2021", "May'2021", "June'2021", "July'2021", "August'2021", "September'2021", "October'2021", "November'2021", "December'2021", "January'2022", "February'2022" ]