Skip to content
KnowledgeCity

Advanced Java: Date and Time API

Take in Oracle’s new Date and Time API and see how it can easily meet even your most difficult date and time needs
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Advanced Provider Scott Stanlick  3 Lessons ·  16m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In these lessons, you’ll be introduced to the new date and time API in action. Java 8 introduced new APIs for Date and Time to address the shortcomings of the older java.util.Date and java.util.Calendar, The new date/time API includes many useful components to help you build complex date/time applications easily.

You’ll learn about the support available for easily transitioning from old-to-new or new-to-old types. We’ll also cover the wide variety of utility methods that support the most common operations, and you will learn how this new library is more intuitive, easy to use, and safer for your code.

What You'll Learn

  • Assess the available capabilities of the Java date and time API
  • Understand how time zone support works in the new API
  • Assess and compare different chronological types
  • Explain how to move forward and backward across time in Java
  • Apply support for transitioning between legacy Date/Calendar types and the new types
  • Work with Time, Duration, Date, and Period components

Key Takeaways

  • Java 8 introduced new Date and Time APIs to address the shortcomings of the older java.util.Date and java.util.Calendar.
  • The new date/time API includes many useful components for building complex date/time applications more easily.
  • The API provides support for transitioning from old-to-new or new-to-old types.
  • The library offers a wide variety of utility methods that support the most common date/time operations.
  • The new library is more intuitive, easier to use, and safer for your code.

Frequently Asked Questions

What does this course cover?

It introduces the new Date and Time API in Java, including support for legacy Date and Calendar, Time and Duration, and Date and Period. It covers transitioning between old and new types, time zone support, comparing chronological types, and moving forward and backward across time.

Who introduced the API taught in this course and why?

Java 8 introduced the new Date and Time APIs to address the shortcomings of the older java.util.Date and java.util.Calendar.

What skills will I gain from this course?

The course relates to Java programming skills including Java 8, Java 9, Java 11, Java APIs, and Java Development Tools.

What lessons are included?

The course includes the following lessons: Support for Legacy Date and Calendar; Time and Duration; and Date and Period.

Why use the new date/time library instead of the older classes?

According to the course, the new library is more intuitive, easier to use, and safer for your code, and it provides utility methods supporting the most common operations along with support for transitioning to and from the older types.