时间:2024-10-14 09:44:44
1、在项目中引入一个hutool的jar包
3、DateUtil.yearAndQuarter(startTime);将时间对象转换成格式字符
5、最后我们来看一下这位方法的解释