获取当前时间的上月月份,格式:YYYY-MM-DD
/**
* 获取当前时间的上月月份,格式:YYYY-MM-DD
* */
public static String getMonth(){
LocalDate now=LocalDate.now();
int month=now.getMonthValue();
int lastmonth=month==1?12:month-1;
int year=month==1?now.getYear()-1:now.getYe
原创
2020-07-01 14:57:16 ·
1250 阅读 ·
0 评论