Get the latest tech news

Handling dates and times in SQL queries with PostgreSQL


PostgreSQL date and time functions with examples: now(), EXTRACT, date_trunc, to_char, interval, age(), generate_series, and their MySQL equivalents.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Times

Times

Photo of dates

dates

Photo of PostgreSQL

PostgreSQL

Related news:

News photo

Why the Raspberry Pi 5 now costs three times its launch price

News photo

Jensen Huang repeated "I do not recall" 138 times and "I don't know" 122 times in a closed-door congressional hearing

News photo

Alpine Linux 3.25 Released With Linux 7.3 Kernel, PostgreSQL 19 Default