Date Range
Get time interval, start / end time.
Installing
yarn add date-range-x # npm install date-range-x
Usage
const dateRange = ; // normalconst begin end = ; // [ 2020-01-19T00:00:00.000Z, 2020-01-20T00:00:00.000Z ] // multi values & negative valuesconst current_year last_year = ; // [ 2020-02-18T17:02:03.004Z, 2019-01-17T16:01:02.003Z ] // format datesconst formatDate = { return date '0' + date + 1 '0' + date;};const current_date next_year = ; // [ '2020-01-19', '2021-01-19' ]