date_trunc('year', now()) : date_trunc « Date Timezone « PostgreSQL






date_trunc('year', now())

postgres=#
postgres=# SELECT date_trunc('year', now());
       date_trunc
------------------------
 2006-01-01 00:00:00-08
(1 row)

postgres=#

           
       








Related examples in the same category

1.date_trunc('minute', now())
2.date_trunc('hour', now())