TIL JAVA ํํ#2
import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; //ํด๋น import๋ฌธ์ ์๋ฐ ํด๋์ค ๋งจ ์๋ถ๋ถ์ ์์ฑ import public class dateTest{ public static void main (String args[]){ LocalDateTime now = LocalDateTime.now(); String formatedNow = now.format(DateTimeFormatter.ofPattern("yyyy๋
MM์ dd์ผ HH์ mm๋ถ ss์ด")); //๋ณด๊ธฐ ํธํ๊ฒ ํด๋น ๋ฌธ๊ตฌ๋ก ํฌ๋งทํด์ฃผ๊ธฐ! System.out.println(formatedNow); //ํฌ๋งทํ ๋ฌธ๊ตฌ๋ก ํ์ฌ ๋ ์ง, ์๊ฐ ์ถ๋ ฅํด์ค๋ค //์ด๋ค ๋ถ์..