From the course: Java 8+ Essential Training: Objects and APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Work with dates and times

Work with dates and times - Java Tutorial

From the course: Java 8+ Essential Training: Objects and APIs

Start my 1-month free trial

Work with dates and times

- [Narrator] There are two completely different APIs for working with dates and times in Java, the original set of classes that were introduced with Java in the mid 1990s, and a completely new date time API that was introduced in Java eight known as the java dot time package. If you're working on, say, a Java Enterprise Edition application and you're working with the Java eight or Java nine runtime, then you can use the new API, but if you're working in older versions of Java, then you'll need to stick with the older classes, and if you're programming in Java to build Android apps, you'll find that the new java dot time tools are available only starting in Android eight, Oreo, the newest version of Android as of this recording. Unfortunately, that will only work if your Android app is limited to use on Android eight and higher, and as of this moment, that represents a tiny portion of the current Android device market. So, I'll show you examples of both types of code. The older set of…

Contents