OWL ITS + 탐지시스템(인터넷 진흥원)
박지현
2022-03-07 398a4927e195755bd6a46be99337efd8dacc3dc2
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);