c # Past 3 months data from the database code example
Example: postgres select from last 3 months
SELECT * from table where date > CURRENT_DATE - INTERVAL '3 months'
SELECT * from table where date > CURRENT_DATE - INTERVAL '3 months'