I'm thinking you'll need to combine BETWEEN w/ addDays - something like:
concat("ModifySqlQuery /dsname=ByteproAGS /where=where Status.ClosedDate between '", addDays(today(), -365), "' and '", today(), "' and Loan.LoanWith is not null and Borrower.SSN='", SSN, "'")