I
I
impressive172020-05-08 21:31:50
PostgreSQL
impressive17, 2020-05-08 21:31:50

How to get the number of days between two dates with a query in PostgreSQL?

I need to get the number of days between two dates with a query in PostgreSQL, and if the difference is negative, then get, for example, the number of days, that is, handle such a case. How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-05-08
@impressive17

what prevents you from reading the doc https://www.postgresql.org/docs/12/functions-datet... or google it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question