Tagged articles
32 articles
Page 1 of 1
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
JavaScript
JavaScript
Jul 16, 2025 · Frontend Development

Why JavaScript’s Date Is a Nightmare and How to Fix It

JavaScript’s native Date object is fraught with inconsistencies—ambiguous parsing, mutable instances, zero‑based months, and no built‑in formatting—leading to bugs across browsers and time zones, so developers should adopt immutable third‑party libraries like Day.js or the upcoming Temporal API for reliable date handling.

Day.jsJavaScriptTemporal
0 likes · 8 min read
Why JavaScript’s Date Is a Nightmare and How to Fix It
Lin is Dream
Lin is Dream
May 26, 2025 · Backend Development

Master Java Date & Time APIs: Quick Reference for Daily, Weekly, Monthly and Quarterly Operations

This article consolidates essential Java date and time utilities—including start/end calculations for days, weeks, months, quarters and years, time arithmetic, formatting, parsing, and conversions between LocalDateTime, Date, and Instant—providing a handy reference for developers working with the Java Time API.

DurationJavaLocalDateTime
0 likes · 15 min read
Master Java Date & Time APIs: Quick Reference for Daily, Weekly, Monthly and Quarterly Operations
php Courses
php Courses
May 8, 2025 · Backend Development

Using PHP filemtime to Retrieve File Modification Time

This article explains how to use PHP's filemtime function to obtain a file's last modification timestamp, demonstrates single‑file and multiple‑file examples with code, and shows how to format the timestamp using the date function.

Backenddatefile-modification
0 likes · 4 min read
Using PHP filemtime to Retrieve File Modification Time
php Courses
php Courses
Feb 26, 2025 · Backend Development

Using PHP filemtime to Retrieve File Modification Time

This article explains how to use PHP's filemtime function to obtain a file's last modification timestamp, demonstrates converting it to a readable date with date(), and provides code examples for retrieving timestamps for a single file and multiple files.

PHPdatefile-modification
0 likes · 4 min read
Using PHP filemtime to Retrieve File Modification Time
Code Mala Tang
Code Mala Tang
Nov 15, 2024 · Frontend Development

Mastering Time Zones in JavaScript: From UTC Storage to DST Detection

Learn how to correctly handle time zones in JavaScript by storing dates in UTC, using the IANA database, detecting daylight saving time, and leveraging built‑in Intl APIs or libraries like Luxon, with practical code examples and best‑practice guidelines.

LuxonTime Zonedate
0 likes · 17 min read
Mastering Time Zones in JavaScript: From UTC Storage to DST Detection
Liangxu Linux
Liangxu Linux
Oct 17, 2024 · Fundamentals

Auto‑Embed Build Version Info in Embedded Software with Git and date

This guide explains how to automatically generate and embed a software version string during compilation for embedded projects, using a header file updated by a Bash script that leverages the Linux date command and Git metadata to simplify version tracking and debugging.

GitVersioningbuild
0 likes · 7 min read
Auto‑Embed Build Version Info in Embedded Software with Git and date
php Courses
php Courses
Sep 23, 2024 · Backend Development

Understanding PHP time() Function: Purpose, Usage, and Code Examples

This article explains the PHP time() function, describing how it returns the current Unix timestamp, how to use it without parameters, and provides multiple code examples for retrieving timestamps, comparing dates, and formatting the current date and time.

Backend DevelopmentPHPdate
0 likes · 4 min read
Understanding PHP time() Function: Purpose, Usage, and Code Examples
php Courses
php Courses
Sep 5, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's date() function, its syntax, required and optional parameters, and provides multiple code examples demonstrating how to retrieve and format current dates, times, and timestamps for various use cases in backend development.

BackendPHPPHP8
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
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
ByteFE
ByteFE
Jan 9, 2023 · Frontend Development

Understanding JavaScript Date Handling and Comparing Popular Date Libraries

This article examines why native JavaScript Date falls short for time handling, explains time measurement standards and time zones, and compares four major date libraries—MomentJS, DayJS, date-fns, and native Date—highlighting their advantages, drawbacks, and appropriate usage scenarios.

DayjsJavaScriptMomentJS
0 likes · 12 min read
Understanding JavaScript Date Handling and Comparing Popular Date Libraries
Programmer DD
Programmer DD
Sep 21, 2022 · Backend Development

Why Does Java’s Date Show an 8‑Hour Shift? Uncovering Timezone Pitfalls

An online promotion that should end at 23:59:59 displayed as finished early due to an 8‑hour discrepancy, traced through HTTP packet capture, DB fields, and Java’s Date handling, revealing that Date objects use the local timezone while timestamps are based on UTC, causing mismatched calculations.

DebuggingJavaTime Conversion
0 likes · 8 min read
Why Does Java’s Date Show an 8‑Hour Shift? Uncovering Timezone Pitfalls
Java Backend Technology
Java Backend Technology
Aug 26, 2022 · Fundamentals

10 Common Java Date API Pitfalls and How to Avoid Them

This article lists ten frequent mistakes when using Java's date and time APIs—such as misusing Calendar fields, wrong format patterns, thread‑unsafe SimpleDateFormat, and daylight‑saving quirks—and provides clear corrected examples and best‑practice solutions.

CalendarSimpleDateFormatTimezone
0 likes · 12 min read
10 Common Java Date API Pitfalls and How to Avoid Them
Selected Java Interview Questions
Selected Java Interview Questions
Jun 28, 2022 · Databases

Designing Cross‑Database Date and Time Types: Comparison of MySQL, Oracle, and SQL Server

The article examines how to design cross‑database date and time storage by comparing MySQL, Oracle, and SQL Server date‑time types, discussing their formats, ranges, storage sizes, and trade‑offs, and proposes practical solutions such as using timestamps, custom conversion functions, and ORM considerations.

OracleSQL Serverdate
0 likes · 7 min read
Designing Cross‑Database Date and Time Types: Comparison of MySQL, Oracle, and SQL Server
ELab Team
ELab Team
Mar 17, 2021 · Frontend Development

Mastering Time in JavaScript: From Unix Timestamps to Modern Date Libraries

This article explains the history of global time standards, how computers represent time with Unix timestamps and the 2038 problem, details ISO 8601 and RFC 2822 formats, and provides practical JavaScript Date usage examples along with comparisons of popular date‑handling libraries such as Moment.js, Dayjs, and Miment.

DayjsJavaScriptdate
0 likes · 22 min read
Mastering Time in JavaScript: From Unix Timestamps to Modern Date Libraries
php Courses
php Courses
Nov 20, 2020 · Backend Development

Calculating Student Age Using PHP Date Functions

This tutorial demonstrates how to use PHP variables and the date() function to automatically compute a student's age based on their birthdate, handling current date retrieval, birthday checks, and adjusting the age calculation accordingly.

BackendPHPage-calculation
0 likes · 3 min read
Calculating Student Age Using PHP Date Functions
UC Tech Team
UC Tech Team
Sep 26, 2018 · Frontend Development

Understanding Date and Time Handling in JavaScript for Internationalization

This article explains JavaScript date and time concepts—including GMT, UTC, ISO 8601, RFC2822, timestamps, parsing, formatting, timezone offsets, localization, and practical internationalization strategies—providing developers with the knowledge to correctly manage time across different regions and platforms.

JavaScriptdatefrontend
0 likes · 12 min read
Understanding Date and Time Handling in JavaScript for Internationalization
Qunar Tech Salon
Qunar Tech Salon
Mar 13, 2016 · Fundamentals

Understanding java.util.Date, Calendar, and SimpleDateFormat in Java

This article explains the legacy java.util.Date class, its limited useful constructors and methods, the more flexible java.util.Calendar API, how to format and parse dates with DateFormat and SimpleDateFormat, and best practices for storing timestamps in databases using long values.

CalendarSimpleDateFormatdatabase
0 likes · 9 min read
Understanding java.util.Date, Calendar, and SimpleDateFormat in Java