The best way is to add date filters into the SQL treatments... In SQL you have a lot of date function
See MySQL doc here to retrieve month, year, or whatever you wan't... Example for months :
SELECT * FROM mytable WHERE column_month = DATE_FORMAT(CURRENT_DATE, '%c');