Split the date.subtract into date.subtract_td and date.subtract_date. The first one works as the old date.subtract and the new one is able to subtract a date from another.