Tagged articles

date-formatting

35 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Jun 20, 2026 · Backend Development

How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points

The article explains why front‑end date and enum parameters often cause parsing errors in Spring applications, describes the two independent conversion mechanisms in Spring MVC and Jackson, and provides a step‑by‑step guide to building global custom converters that unify date formats and enum mappings across the whole project.

Backend DevelopmentEnum MappingSpring
0 likes · 17 min read
How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points
php Courses
php Courses
Aug 14, 2025 · Backend Development

Master PHP Time Functions: Get, Format, Calculate, and Set Timezones

This tutorial explains how to use PHP's time(), date(), strtotime(), and date_default_timezone_set() functions to retrieve the current timestamp, format dates, perform date arithmetic, and configure timezones, providing practical code examples for each operation.

PHPTimezonedate-formatting
0 likes · 4 min read
Master PHP Time Functions: Get, Format, Calculate, and Set Timezones
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 7, 2025 · Backend Development

Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions

This article explains why proper date formatting matters in Spring Boot applications, compares the default Jackson behavior, and presents five concrete approaches—including global configuration, @JsonFormat, custom ObjectMapper, @JsonComponent, and @JsonSerialize—detailing their implementations, advantages, and drawbacks.

JavaSpring Bootdate-formatting
0 likes · 8 min read
Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions
Java Tech Enthusiast
Java Tech Enthusiast
Jul 8, 2025 · Backend Development

Master Global Date Formatting in Spring Boot: Simple Tips

This article explains how to achieve consistent date and time formatting in Spring Boot applications by using SimpleDateFormat, configuring Jackson globally with spring.jackson properties, and applying @JsonFormat, @JsonComponent, and @Configuration annotations to handle various Java date types efficiently.

Spring Bootannotationsdate-formatting
0 likes · 7 min read
Master Global Date Formatting in Spring Boot: Simple Tips
Lin is Dream
Lin is Dream
May 28, 2025 · Backend Development

Mastering Uniform Date Formatting in Spring Boot with Jackson

This guide shows how to configure Jackson in Spring Boot to consistently format LocalDateTime, Date, and String parameters as "yyyy-MM-dd HH:mm:ss", covering global settings via application properties, field-level @JsonFormat, custom serializers/deserializers, and unified handling in REST controllers.

JavaSpring Bootdate-formatting
0 likes · 8 min read
Mastering Uniform Date Formatting in Spring Boot with Jackson
Su San Talks Tech
Su San Talks Tech
Apr 22, 2025 · Backend Development

Avoid Date Bugs: Thread‑Safe Formatting and Time‑Zone Mastery in Java

This article explores common pitfalls in Java date handling—such as non‑thread‑safe formatting and daylight‑saving‑time errors—and presents robust solutions using ThreadLocal, the Java 8 Date/Time API, zone‑aware calculations, caching, and global interceptor patterns to ensure correct, high‑performance time processing in backend systems.

Java 8Timezonebackend
0 likes · 7 min read
Avoid Date Bugs: Thread‑Safe Formatting and Time‑Zone Mastery in Java
Raymond Ops
Raymond Ops
Apr 1, 2025 · Operations

Master the Linux date Command: Formats, Options, and Real‑World Examples

Learn how to use the Linux date command to display, format, and manipulate dates and times, including options for custom strings, file input, relative dates, setting system time, UTC display, and retrieving file modification timestamps, with practical code examples and a comprehensive format table.

date commanddate-formattingsysadmin
0 likes · 9 min read
Master the Linux date Command: Formats, Options, and Real‑World Examples
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 7, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains why consistent date formatting is crucial in Spring Boot APIs, outlines common scenarios such as front‑end data exchange, database storage and logging, and presents multiple server‑side and client‑side solutions—including SimpleDateFormat, DateTimeFormatter, global Jackson settings, annotations, custom converters, and timestamp output—complete with code examples.

Backend DevelopmentDateTimeFormatterJava
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 4, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains various Spring Boot approaches for formatting dates in API responses, covering frontend JavaScript utilities, Java SimpleDateFormat and DateTimeFormatter, global Jackson settings, annotation‑based formatting, custom converters, ControllerAdvice initBinder, and timestamp output methods.

Backend DevelopmentDateTimeFormatterJava
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
php Courses
php Courses
Sep 9, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's versatile date() function, detailing its syntax, required format parameter, optional timestamp argument, and demonstrates numerous usage examples—including retrieving current date, time, individual components, and formatting specific timestamps—highlighting its importance for backend web development.

PHPbackenddate-formatting
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
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
Java High-Performance Architecture
Java High-Performance Architecture
May 24, 2024 · Backend Development

Fastjson Pitfalls: Date Formatting Glitch and Circular Reference Chaos Explained

The author recounts a debugging saga with Alibaba's Fastjson library, detailing how a global date‑format setting failed on Linux, how an outdated Fastjson version caused the issue, and how circular‑reference detection with $ref can surprise developers, offering practical solutions and version recommendations.

FastJSONJavaVersion Compatibility
0 likes · 11 min read
Fastjson Pitfalls: Date Formatting Glitch and Circular Reference Chaos Explained
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2023 · Backend Development

How to Configure Date Formatting in SpringBoot Backend Applications

This guide explains how to customize the serialization and deserialization of Date objects in SpringBoot by adjusting application.yml/properties, using @JsonFormat, @DateTimeFormat, and @Temporal annotations, and by creating global converters for both form submissions and JSON payloads, ensuring consistent timezone handling.

Backend DevelopmentGlobal ConverterJava
0 likes · 12 min read
How to Configure Date Formatting in SpringBoot Backend Applications
Java Captain
Java Captain
Mar 2, 2022 · Backend Development

Understanding the Difference Between yyyy and YYYY in Java Date Formatting

This article explains how using the uppercase YYYY pattern in Java's SimpleDateFormat can incorrectly shift dates to the next year for week‑based years, demonstrates the issue with sample code, and provides guidance to avoid this subtle bug in date handling.

Backend DevelopmentJavabug prevention
0 likes · 4 min read
Understanding the Difference Between yyyy and YYYY in Java Date Formatting
Top Architect
Top Architect
Dec 31, 2021 · Backend Development

Understanding the Difference Between yyyy and YYYY in Java Date Formatting

The article explains a subtle Java date‑formatting bug where using the week‑based year pattern (YYYY) can incorrectly display the next calendar year for dates at year‑end, demonstrates the issue with sample code, and clarifies why yyyy should be used for ordinary year representation.

CalendarYYYYbackend
0 likes · 5 min read
Understanding the Difference Between yyyy and YYYY in Java Date Formatting
Programmer DD
Programmer DD
Dec 26, 2021 · Backend Development

Why 'YYYY-MM-dd' Gives the Wrong Year in Java – The Week‑Based Year Pitfall

The article explains why using the pattern 'YYYY‑MM‑dd' with Java's SimpleDateFormat can produce an incorrect year for dates near the end of the year, demonstrates the issue with a unit test comparing it to the correct 'yyyy‑MM‑dd' pattern, and reveals that the problem stems from the week‑based year semantics of 'Y'.

JavaSimpleDateFormatbug
0 likes · 5 min read
Why 'YYYY-MM-dd' Gives the Wrong Year in Java – The Week‑Based Year Pitfall
Liangxu Linux
Liangxu Linux
Jul 26, 2021 · Fundamentals

Master the Linux date Command: Display, Format, and Set Dates

This tutorial explains how to use the Linux date command to show the current time, format dates in various ways, query past or future dates, customize output with format specifiers, set the system clock, and incorporate date values into shell scripts.

LinuxShell Scriptingdate command
0 likes · 7 min read
Master the Linux date Command: Display, Format, and Set Dates
Programmer DD
Programmer DD
Dec 30, 2020 · Backend Development

Why Using YYYY‑MM‑dd Can Produce Wrong Years in Java Date Formatting

This article demonstrates how the week‑based year pattern "YYYY" in Java's SimpleDateFormat can incorrectly roll over the year for dates near year‑end, provides a reproducible unit test with code and output, and explains the underlying reason behind the discrepancy.

SimpleDateFormatdate-formattingweek-based-year
0 likes · 4 min read
Why Using YYYY‑MM‑dd Can Produce Wrong Years in Java Date Formatting
JavaEdge
JavaEdge
Nov 24, 2020 · Fundamentals

Avoid Common SimpleDateFormat Pitfalls and Embrace Thread‑Safe DateTimeFormatter in Java

This article explains the hidden traps of Java's SimpleDateFormat—such as confusing 'y' and 'Y', week‑year calculations, and thread‑safety issues—demonstrates failures with multithreaded parsing, and shows how to replace it with the modern, thread‑safe DateTimeFormatter, including practical code examples and conversion tips.

DateTimeFormatterJavaJava 8
0 likes · 10 min read
Avoid Common SimpleDateFormat Pitfalls and Embrace Thread‑Safe DateTimeFormatter in Java
macrozheng
macrozheng
Apr 16, 2020 · Backend Development

How to Simplify Date Formatting in Spring Boot: Global Config & @JsonFormat Tricks

This article shares practical techniques for handling date and time in Spring Boot projects, including the pitfalls of using SimpleDateFormat, the benefits of @JsonFormat, and two approaches to global configuration that streamline formatting for both java.util.Date and java.time types.

@JsonFormatBackend DevelopmentGlobal Configuration
0 likes · 9 min read
How to Simplify Date Formatting in Spring Boot: Global Config & @JsonFormat Tricks
Python Programming Learning Circle
Python Programming Learning Circle
Mar 20, 2020 · Fundamentals

Data Cleaning with Python: Removing Duplicates, Blank Rows, and Formatting Dates and Numbers

This tutorial demonstrates how to use Python and pandas to clean Excel data by removing duplicate and empty rows, stripping spaces, reformatting date strings, and standardising numeric values with two‑decimal precision and currency symbols, providing complete code examples for each step.

ExcelNumber Formattingdate-formatting
0 likes · 11 min read
Data Cleaning with Python: Removing Duplicates, Blank Rows, and Formatting Dates and Numbers