Right at the top of 2nd link you provided is an example that will do what you want...
"Here is an example that uses date functions. The query below selects all records with a date_col value from within the last 30 days:"
SELECT something FROM table
WHERE TO_DAYS(NOW()) - TO_DAYS(date_col) <= 30