public class DateUtil {
private DateUtil() {
}
/**
* @author Juseok
* @see DateUtil.convertMillisecToDate
* @description :
* @param millisec
* @return
*/
public static Date convertMillisecToDate(long millisec) {
return new Date(millisec);
}
/**
* @author Juseok
* @see DateUtil.displayDateFormat
* @description :
* @param dateFormat
* @param date
* @return
*/
public static String displayDateFormat(String dateFormat, Date date) {
if((dateFormat==null) || (dateFormat=="")) {
dateFormat = "yyyy.MM.dd HH:mm:ss.SSSZ";
}
SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
return sdf.format(date);
}
}