Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

today minus 15 days postgresql

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

--Unrelated to the question, but PostgreSQL also supports some shortcuts:
SELECT 'yesterday'::TIMESTAMP, 'tomorrow'::TIMESTAMP, 'allballs'::TIME;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #today #days #postgresql
ADD COMMENT
Topic
Name
8+5 =