Date

Engineering

SQL - Convert Date to String

Converting dates to strings is one of those tasks that seems trivial until you’re debugging a report that shows ‘2024-01-15’ in production but ‘01/15/2024’ in development. Date formatting affects…

Read more →
Engineering

SQL - Convert String to Date

Every database developer eventually faces the same problem: dates stored as strings. Whether it’s data imported from CSV files, user input from web forms, legacy systems that predate proper date…

Read more →
Scala

Scala - Date and Time Operations

The java.time package provides separate classes for dates, times, and combined date-times. Use LocalDate for calendar dates without time information and LocalTime for time without date context.

Read more →
Engineering

R lubridate - Date Arithmetic

Date arithmetic sounds simple until you actually try to implement it. Adding 30 days to January 15th is straightforward. Adding ‘one month’ is not—does that mean 28, 29, 30, or 31 days? What happens…

Read more →
Python

PySpark - SQL Date Functions

Date manipulation is the backbone of data engineering. Whether you’re building ETL pipelines, analyzing time-series data, or creating reporting dashboards, you’ll spend significant time working with…

Read more →
MySQL

How to Use Date Functions in MySQL

• MySQL stores dates and times in five distinct data types (DATE, DATETIME, TIMESTAMP, TIME, YEAR), each optimized for different use cases and storage requirements—choose DATETIME for most…

Read more →
Pandas

How to Filter by Date in Pandas

Date filtering is one of the most common operations in data analysis. Whether you’re analyzing sales trends, processing server logs, or building financial reports, you’ll inevitably need to slice…

Read more →