PostgreSQL · Function
extract
EXTRACT reads a chosen part of a date, time, timestamp, or interval. It returns that part as a numeric value.
Last updated
Syntax
EXTRACT(field FROM source)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
date_partdate_truncto_timestampisoyearweek