Check out example codes for "today minus 15 days postgresql". It will help you in understanding the concepts better.

Code Example 1

--yesterday
SELECT NOW() - INTERVAL '1 DAY';

--Unrelated to the question, but PostgreSQL also supports some shortcuts:
SELECT 'yesterday'::TIMESTAMP, 'tomorrow'::TIMESTAMP, 'allballs'::TIME;

Learn ReactJs, React Native from akashmittal.com