How to Get the Current Date and Time in ClickHouse

Last updated July 25, 2026 · By the SaturnSQL team

now() returns the current DateTime and today() the current Date; yesterday() also exists. Use toStartOfDay, toStartOfHour, and friends to truncate timestamps, and pass a timezone name to now() for zone-aware values.

SELECT now(), today(), yesterday(), toStartOfDay(now());

Timezones

SELECT now('Europe/Helsinki'), toDate(now(), 'America/New_York');

Run this in SaturnSQL

SaturnSQL is a browser-based SQL editor for teams: shared query library, schema-aware autocomplete, and scheduled exports to Google Sheets and Slack.

Try it free

Related ClickHouse guides

© 2026 Panda Capital Oy Ab. All rights reserved.