Which sentence is in the passive voice?

A. It was two days ago that my friend fixed the car.
B. The car was fixed by my friend two days ago.
C. Two days ago, my friend fixed the car.
D. My friend fixed the car two days ago.