Currently i'm importing Moment and Moment range as below, Need the array of dates between given 2 dates so that dates can be iterated
import Moment from 'moment';
import {extendMoment} from 'moment-range';
import React, {Component} from 'react';
class T extends Component {
constructor(props) {
const start = moment("2018-10-14", 'YYYY-MM-DD');
const end = moment("2018-10-20", 'YYYY-MM-DD');
const range = moment.range(start, end);
//need an array of dates in'YYYY-MM-DD' to itarate
}
}
bythat Iterate over your range by a given period.