Browse Source

添加 getHalfEndYm 方法

master
ht 2 years ago
parent
commit
fc680bc284
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/util/DateUtil.java

+ 4
- 0
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/util/DateUtil.java View File

@@ -1,6 +1,7 @@
package cc.smtweb.framework.core.util; package cc.smtweb.framework.core.util;


import org.apache.commons.lang3.time.DateUtils; import org.apache.commons.lang3.time.DateUtils;
import org.springframework.util.unit.DataUnit;


import java.sql.Timestamp; import java.sql.Timestamp;
import java.text.DateFormat; import java.text.DateFormat;
@@ -1204,6 +1205,9 @@ public class DateUtil {
return ymPeriod; return ymPeriod;
} }
} }
public static String getHalfEndYm() {
return getHalfEndYm(DateUtil.getNowYm());
}


//获取年月,YYYYMM格式 //获取年月,YYYYMM格式
public static String getDateYm(Date dt) { public static String getDateYm(Date dt) {


Loading…
Cancel
Save