SyntaxFix
Write A Post
Hire A Developer
Questions
Simply subtract them:
SELECT ('2015-01-12'::date - '2015-01-01'::date) AS days;
The result:
days ------ 11