quick_date
v1.0.2
Published
generate the months
Downloads
3
Readme
QuickDate
Why?
Generate Dates Quickly
Installation
npm i quick_date
Usage
const getDate = require('quick_date');
Method
getDate(numberOfNextMonth,includeCurrentMonth);
Example
Example 01 - Generate Next 4 Month with Current Month
let withCurrentMonth = getDate(4,true);
console.log(withCurrentMonth);
Output
[
{ name: 'Feb - 2023' },
{ name: 'Mar - 2023' },
{ name: 'Apr - 2023' },
{ name: 'May - 2023' }
]
Example 02 - Generate Next 4 Month Without Current Month
let withOutCurrentMonth = getDate(4,false);
console.log(withOutCurrentMonth);
Output
[
{ name: 'Mar - 2023' },
{ name: 'Apr - 2023' },
{ name: 'May - 2023' },
{ name: 'Jun - 2023' }
]
License
Licensed under MIT
Copyright (c) 2023 Vithushiyan Pathivarathan
Other Updates are Comming Soon :)