pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/DateTime.java
@@ -501,6 +501,17 @@ ////////////////////////////////////////////////////////////////////////// /** * 字符串型日期(2024-12)转成年月日数组 * @param yyyy_MM 年月日 * @return 年月日数组 */ public static int[] yyyy_MM_ymdGroup(String yyyy_MM){ int y = Integer.parseInt(yyyy_MM.substring(0 , 4)) ; int m = Integer.parseInt(yyyy_MM.substring(5 , 7)) ; return new int[]{y,m} ; } /** * 字符串型日期(2009-09-10)转成年月日数组 * @param yyyy_MM_DD 年月日 * @return 年月日数组