import java.util.Date;
import java.util.TimeZone;
import java.text.SimpleDateFormat;
public class Main {
public static void main(String[] args) {
Date currentDate = new Date();
SimpleDateFormat df = new SimpleDateFormat("YYYY-MM-dd");
df.setTimeZone(TimeZone.getTimeZone("Asia/Seoul"));
System.out.println(df.format(currentDate));
}
}
์ง์ญ์ ์ ํํ ๋ ์ง ์ถ๋ ฅํ๊ธฐ