Explorar el Código

添加 getHalfEndYm 方法

master
ht hace 2 años
padre
commit
fc680bc284
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 Ver fichero

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

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

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

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


Cargando…
Cancelar
Guardar