Programmer DD
Programmer DD
May 7, 2021 · Fundamentals

Master Java 8 Date & Time API: Practical Examples and Tips

This article introduces Java 8's new date‑time API, explains its advantages over the old java.util.Date and SimpleDateFormat, lists the essential classes such as Instant, LocalDate, LocalTime, ZonedDateTime, and provides step‑by‑step code examples for common operations like getting the current date, manipulating specific dates, handling time zones, and formatting.

INSTANTJavaJava 8
0 likes · 20 min read
Master Java 8 Date & Time API: Practical Examples and Tips
JavaEdge
JavaEdge
Oct 9, 2020 · Backend Development

Mastering Java 8’s New Date and Time API: Immutable Classes, Zones, and More

This article explains why Java needed a new date‑time library, introduces the core concepts of the java.time API such as immutable value classes, domain‑driven design, factory methods, adjusters, periods, durations, time‑zone handling, and non‑ISO calendars, and provides concrete code examples for each feature.

date-timedatetime-apijava-8
0 likes · 12 min read
Mastering Java 8’s New Date and Time API: Immutable Classes, Zones, and More
Programmer DD
Programmer DD
Aug 1, 2019 · Backend Development

Master Java 8 Date & Time API: From LocalDate to ZonedDateTime

This tutorial explains why the old java.util.Date and Calendar APIs were problematic, introduces the immutable, thread‑safe Java 8 Date‑Time classes such as LocalDate, LocalTime, LocalDateTime, ZonedDateTime, Period and Duration, shows practical code examples for creation, manipulation, formatting, conversion and compatibility, and lists alternative libraries like ThreeTen‑BP and Joda‑Time.

DurationJavaLocalDate
0 likes · 13 min read
Master Java 8 Date & Time API: From LocalDate to ZonedDateTime