Date (1) 썸네일형 리스트형 [Java] 유용한 클래스 - Calendar, Date 개요 Calendar, Date 클래스 java.util 패키지에 속해있는 클래스로서 날짜와 시각에 대한 처리를 제공하는 클래스이다. Date클래스는 일반클래스이고, Calendar 클래스는 추상클래스이다. Date 클래스 날짜와 시간 정보를 저장하는 클래스 Calendar 클래스 구동되는 운영체제의 날짜와 시간 정보를 가져오는 클래스 Date 클래스 Date 클래스 객체 생성 Date date = new Date(); Date 클래스로 날짜, 시간 표현시 SimpleDateFormat 클래스를 사용하면 원하는 형식으로 시간을 가져올 수 있다. SimpleDateFormat 클래스(위치 : java.text.SimpleDateFormat) 현재 날짜와 시간 가져오기 예제 import java.text.S.. 이전 1 다음