Skip to content

Instantly share code, notes, and snippets.

@ichux
Created September 18, 2018 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichux/e56e9f7fceeac18ff8e72ff669785089 to your computer and use it in GitHub Desktop.
Save ichux/e56e9f7fceeac18ff8e72ff669785089 to your computer and use it in GitHub Desktop.
add and subtract Postgres dates
select date '2018-09-18' - date '1990-11-22' AS difference;
select date '1990-11-22' + 10162 AS difference;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment