참조
SimpleDateForma 사용 이유
예시 코드
Date now = new Date(); // 현재 시간을 가지는 Date 객체
SimpleDaeteFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 생성자에 String 타입의 객체를 받으며 워하는 형식의 날짜 + 시간을 작성
// y:년 M:월 d:일 H:시 m:분 s:초 (대소문자를 구별)
System.out.println(formatter.format(now)); // format 메서드 인자로 Date타입 인자를 받음
// 출력 예) 2023-10-06 12:41:05