Old car new car

Hello, if I buy a new business car and take the 179 deduction on it, can I still use the mileage deduction for the car I already used for most of the year? Can I do both?

Thanks