September 2019
Intermediate to advanced
816 pages
18h 47m
English
Before JDK 8, the solution must focus on the java.util.Date class. The code that is bundled to this book contains this solution.
Starting with JDK 8, the date and time can be obtained via the dedicated classes, LocalDate and LocalTime, from the java.time package:
// 2019-02-24LocalDate onlyDate = LocalDate.now();// 12:53:28.812637300LocalTime onlyTime = LocalTime.now();