let currentTime = moment().format('YYYY-MM-DD hh:mm:ss')
let curDay_ = currentTime.substr(8, 2)
function changeStr(allstr, start, end, str, changeStr) {
if (allstr.substring(start - 1, end - 1) == str) {
return allstr.substring(0, start - 1) + changeStr + allstr.substring(end-1, allstr.length);
} else {
return allstr;
}
}
let str_ = 'abcdefghijk'
let startDate = changeStr(currentTime,9,11,curDay_,'08')
let endDate = moment(currentTime).add(1, "months").startOf("month").format("YYYY-MM-DD hh:mm:ss")
let isDuration = moment(currentTime).isBetween(startDate, endDate);