function getCurrentMonth () {
  var currentDate = new Date();
  var currentMonth = currentDate.getMonth() + 1; // 注意要加1，月份是从0开始计数的
  return currentMonth;
}

function getCurrentDate () {
  var currentDate = new Date();
  var currentDateOfMonth = currentDate.getDate();
  return currentDateOfMonth;
}

function getCurrentMonthRange () {
  var currentDate = new Date();
  var currentYear = currentDate.getFullYear();
  var currentMonth = currentDate.getMonth();
  var firstDayOfMonth = new Date(currentYear, currentMonth, 1);
  // var today = currentDate.getDate();

  var rangeStart = firstDayOfMonth.toLocaleDateString(); // 当月1号的日期
  var rangeEnd = currentDate.toLocaleDateString(); // 当前日期

  return [rangeStart,
    rangeEnd]


}
export const nowmonthy = getCurrentMonth()
export const nowdate = getCurrentDate()
export const nowdaterange = getCurrentMonthRange()