News for hackers. Stuff that matters.
Re:PostgreSQL's Missing DateDiff Function by pella on Tuesday December 21, 2021 @06:29PM (#29643414)
alternative - for 1y results:

  select date_part('year','2021-01-01'::date) - date_part('year','2020-12-31'::date) as yeardiff;

  yeardiff 
  ----------
      1
  (1 row)

There are no comments on this comment yet.