mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update
This commit is contained in:
@@ -1181,4 +1181,14 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前时间的前半年日期
|
||||
* @return
|
||||
*/
|
||||
public static String getHalfYearAgo(String nowStr) {
|
||||
LocalDate now = LocalDate.parse(nowStr);
|
||||
LocalDate halfYearAgo = now.minusMonths(6);
|
||||
return halfYearAgo.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user