I know of date_part('days', age(release_date))
, which will show you days of the age of the release_date
col (timestamp
). For example, if the release date is 1994-05-30
, the date_part
calculation would yield 5 days
.
However, how can I find out from a countdown perspective, ie, for another release. There are 2 days
left till the anniversary of this release hits? Is it just a matter of 365 - date_part('days', age(release_date))
, for example? Or is there a better way?