Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在、私は
入力:Date applicationDate;
Date applicationDate;
出力:1318636800000
1318636800000
この日付出力を適切にフォーマットするにはどうすればよいですか?
次のように実行できます。
Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); System.out.println(cal.getTimeInMillis());