I want to query all the contact records that have not been modified for the past three years.
SELECT Id FROM Contact WHERE LastModifiedDate < LAST_N_YEARS:3
But as LAST_N_YEARS
starts from previous year and goes back to n
previous years. I want from current date to previous n
years.
How can I do it?