1、我们这里使用的是hutool,所以在项目中先引入jar包
3、使用DateUtil.yearAndQuarter(date);来获取到指定日期年份和季度
5、这里的结果是20194,其实意思就是2019年第4个季度