Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize Online / PHPize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear
SELECT GENERATE_SERIES( DATE_TRUNC('month', CURRENT_DATE), -- First day of current month (DATE_TRUNC('month', CURRENT_DATE) + INTERVAL '1 month' - INTERVAL '1 day')::date, -- Last day of current month '1 day' )::date AS calendar_date;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear