src/main/java/kr/wisestone/owl/util/DateUtil.java
@@ -24,6 +24,10 @@ return convertStrToDate(source, "yyyy-MM-dd HH:mm:ss"); } public static Date convertStrToDateOnly(String source) { return convertStrToDate(source, "yyyy-MM-dd"); } public static Date convertStrToDate(String source, String pattern) { return convertStrToDate(source, pattern, Locale.KOREA); } @@ -58,6 +62,7 @@ public static String convertDateToStr(Date source, String pattern, Locale locale) { String date = null; SimpleDateFormat sdf = new SimpleDateFormat(pattern, locale); date = sdf.format(source);