diff --git a/platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java b/platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java index 0123909..d1816d9 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java +++ b/platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java @@ -16,6 +16,8 @@ public class DateUtil { public static SimpleDateFormat yyyy = new SimpleDateFormat("yyyy"); public static SimpleDateFormat ymd = new SimpleDateFormat("yyyyMMdd"); public static SimpleDateFormat y_m_d = new SimpleDateFormat("yyyy-MM-dd"); + + public static SimpleDateFormat y_m_d1= new SimpleDateFormat("yyyy年MM月dd日"); public static SimpleDateFormat md = new SimpleDateFormat("MM-dd"); public static SimpleDateFormat m_d = new SimpleDateFormat("MM/dd"); public static SimpleDateFormat y_m_d_h_m_s = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); @@ -326,6 +328,16 @@ public class DateUtil { return null; } } + public static String getyyyy_MM_dd1(Date d) { + if (d == null) { + return null; + } + try { + return y_m_d1.format(d); + } catch (Exception e) { + return null; + } + } public static String getMMdd(Date d) { if (d == null) {