Skip to content
Justice Tech School

Date Basics

Store dates as ISO text. date() and strftime() extract and shift parts.

Example
SELECT date('2026-03-15', '+7 days') AS next_week, strftime('%Y', '2026-03-15') AS year;

Result

next_week  | year
2026-03-22 | 2026

Exercise

Add days.

date(d, '+7 ')

Quiz Test

Which date format sorts correctly?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.