I used the code you supplied but noticed it's returning everything 180 days or older. I only want results that fall exactly 180 days from current date.
arcpy.SelectLayerByAttribute_management(permits, "NEW_SELECTION", "Date_Accepted = date '{}' AND Fee_Paid Is NULL".format(notice.strftime("%Y/%m/%d")))