NO.1 求中间的日期字符串

要求 给定另个日期字符串 '2018-06','2018-12'
返回中间的月份日期 数组 [ '2018-7', '2018-8', '2018-9', '2018-10', '2018-11' ]

function arrdate(date1,date2){
    let res=[];
    let startTime=getDate(date1)
    let endTime=getDate(date2)
    if(endTime

你可能感兴趣的:(NO.1 求中间的日期字符串)