Tagged articles

java.time

15 articles · Page 1 of 1
Java Tech Enthusiast
Java Tech Enthusiast
Jul 4, 2026 · Backend Development

New CTO Bans java.util.Date Usage—Why Ignoring It Can Get You Fired

The article explains the fundamental design flaws of java.util.Date—misleading name, mutability, non‑finality, timezone quirks, and legacy numbering—why a CTO may forbid its use, and provides a step‑by‑step guide to replace it with java.time classes such as Instant, LocalDateTime and ZonedDateTime.

Javabackenddate-time
0 likes · 12 min read
New CTO Bans java.util.Date Usage—Why Ignoring It Can Get You Fired
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 25, 2025 · Fundamentals

Why java.util.Date Is a Pitfall and How to Modernize with java.time

This article explains the shortcomings of java.util.Date—its misleading name, mutability, poor API design, thread‑unsafe formatting, and time‑zone ambiguities—provides concrete code examples of these issues, and demonstrates modern, immutable replacements from the java.time package such as Instant, LocalDate, LocalDateTime, ZonedDateTime and Period for safer, clearer date‑time handling in Java applications.

datejava.timespring-boot
0 likes · 13 min read
Why java.util.Date Is a Pitfall and How to Modernize with java.time
Shepherd Advanced Notes
Shepherd Advanced Notes
Jul 5, 2024 · Backend Development

Why Switch to LocalDateTime? Master Java 8 Date/Time API and Avoid Common Pitfalls

This article explains why the legacy java.util.Date and Calendar APIs are problematic, demonstrates common bugs such as integer overflow, year‑format issues, and SimpleDateFormat thread‑safety, and shows how Java 8's immutable java.time classes like LocalDate, LocalDateTime and DateTimeFormatter provide clear, safe, and concise solutions with practical code examples.

JavaJava 8date-formatting
0 likes · 21 min read
Why Switch to LocalDateTime? Master Java 8 Date/Time API and Avoid Common Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Mar 12, 2024 · Backend Development

Problems with java.util.Date and Migration to java.time API

The article explains the design flaws of java.util.Date, such as mutability, misleading naming, and timezone issues, and provides a step‑by‑step guide to replace it and related APIs with java.time classes like Instant, LocalDateTime, and ZonedDateTime, including code examples.

APIdatejava.time
0 likes · 13 min read
Problems with java.util.Date and Migration to java.time API
The Dominant Programmer
The Dominant Programmer
Nov 1, 2022 · Fundamentals

Common Java 8 Date and Time APIs: Getting Today’s Date and More

This article demonstrates how to use Java 8’s java.time package to obtain the current date and time, extract components, create specific dates, compare dates, handle periodic dates, compute future and past dates, retrieve timestamps, check leap years, calculate differences, and format/parse date strings, with concrete code examples.

JavaJava 8chrono-unit
0 likes · 10 min read
Common Java 8 Date and Time APIs: Getting Today’s Date and More
macrozheng
macrozheng
May 9, 2022 · Backend Development

Master Java Date & Time: From JDK7 Date to JDK8 LocalDate/LocalDateTime

This article compares Java's legacy date handling in JDK7 with the modern java.time API introduced in JDK8, demonstrating how to create, format, and convert dates using LocalDate, LocalDateTime, DateTimeFormatter, and related methods, and provides a comprehensive table of useful LocalDate APIs.

Backend DevelopmentJDK8Java
0 likes · 9 min read
Master Java Date & Time: From JDK7 Date to JDK8 LocalDate/LocalDateTime
Architect's Tech Stack
Architect's Tech Stack
Oct 10, 2021 · Fundamentals

Java 8 Date and Time API Tutorial with Code Examples

This article introduces Java 8's new date‑time API, explains why the old java.util.Date and SimpleDateFormat were problematic, and provides eleven practical code examples that demonstrate how to obtain the current date, extract year/month/day, create specific dates, compare dates, work with time zones, and format or parse date strings.

Java 8code-examplesdatetime
0 likes · 11 min read
Java 8 Date and Time API Tutorial with Code Examples
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
Architect's Tech Stack
Architect's Tech Stack
Oct 3, 2019 · Fundamentals

Detailed Overview of JDK 13 New Features

This article provides a comprehensive English summary of JDK 13's new features—including switch expression enhancements, text‑block syntax, dynamic CDS archives, ZGC memory reclamation, revamped socket APIs, new FileSystems methods, updated NIO ByteBuffer operations, the Reiwa era in java.time, Unicode 12.1 support, GC improvements, security updates, and removed legacy functionalities—accompanied by original Java code examples.

CDSJavaNIO
0 likes · 11 min read
Detailed Overview of JDK 13 New Features