qiao20
var nowdays = new Date();
            var year = nowdays.getFullYear();
            var month = nowdays.getMonth();
            if(month==0){
                month = 12;
                year = year-1;

            }
            if(month<10){
                month = \'0\'+month;
            }
            
            var myDate = new Date(year,month,0);

            var startDate = year+\'-\'+month+\'-01 00:00:00\'; //上个月第一天
            var endDate = year+\'-\'+month+\'-\'+myDate.getDate()+\' 23:59:00\';//上个月最后一天

  

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2020-12-19
  • 2021-06-20
相关资源
相似解决方案