To format the current date, you can use DateTimeFormatter class which is included in JDK 1.8. FileName: CurrentDateTimeExample1.java. ADVERTISEMENT.
確定! 回上一頁