unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

Date Functions

Pro

12 questions

Unlock all 12 questions with a Pro subscription.

Upgrade to Pro
OutputEasy
Which field does EXTRACT pull?
Multiple choiceEasy
Getting the current date and time
OutputEasy
Off-by-one trap: subtracting dates
OutputEasy
7 days forward - where do you land?
Multiple choiceEasy
NOW() vs CURRENT_TIMESTAMP
OutputEasy
Zero-padded or raw number?
OutputMedium
Which rows survive the date window?
OutputMedium
What does DATE_TRUNC do to the time?
OutputMedium
Monthly rollup - spot the key column
Multiple choiceHard
Full years from a birthdate - which expression works?
Multiple choiceHard
TIMESTAMP vs TIMESTAMPTZ
Multiple choiceHard
Which January filter won't miss late-night rows?