I am trying to write a query which returns data from 3 months back and bases the current month from the system time. So if the query ran today, it would return May data. Something like:
List<testing> myList = [select id, name.....from .... where month__c = 3_MONTHS_AGO ...]
Is there a nice way of doing this in Apex
?