SQL · Functions and expressions

current_date / now()

The current date or timestamp. now() includes time and time zone in PostgreSQL.

Syntax
current_date / now()

Example

Open in the lab

More in this group

cast() concat() cte date_trunc() exists extract() Greatest / least lag() / lead()

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course