Under consumer law, you have six months. Any fault that was on the car when you bought it must be repaired by the dealer.
This is what "Which" has to say:
PURCHASED AFTER 01 OCTOBER 2015
The first 30 days:
You're entitled to a 30 day right to reject under the Consumer Rights Act if the car is unfit for purpose, of unsatisfactory quality or not as described. You can ask for a repair or replacement but you aren't obliged to accept one and can insist on a full refund which the dealer will be legally obliged to give.
After 30 days If you're outside the 30 days than you are obliged to accept an offer of repair or replacement.
Refund deductions Car dealers can make a deduction from the refund for fair use of the car after the initial 30 day right to reject.
2 Contact your finance or credit company
If you bought the car on hire purchase or your credit card you have the right to bring the dispute to your finance company or credit card company.
If you bought the car on hire purchase, you have the common law right to reject a faulty car throughout the duration of the agreement so long as you stop using the car once you’ve discovered the fault. Write to the hire purchase company and tell them you are rejecting the car as it is unsatisfactory.
If you paid for the second hand car on your credit card (or with another type of credit, such as a loan) your credit provider is jointly liable for any breach of contract (as long as the car did not cost more than £30,000).
If the car dealer won’t help, contact the credit company to say that you're either rejecting the second hand car or that you want to claim for repairs.
If the card company or credit provider won’t help, you can take your case to the Financial Ombudsman Service.
3 Give the dealer a final chance
If the dealer/finance company doesn't reply to your letters, refuses to do anything, or makes a final offer that you are unwilling to accept, write again giving them a final chance to resolve the matter.
Tell the dealer or finance company that if it doesn’t act, you'll be taking your claim further.
4 Take your complaint further
If the dealer still doesn't sort out your problem, you can either:
escalate your complaint to the Consumer Ombudsman
take up the matter with your credit provider
start court proceedings.
If the value of the second-hand car or of the repairs you want done is below a certain amount (£10,000 in England and Wales or £3,000 in Scotland or Northern Ireland), you can use the small claims court.
If your claim is for more than this amount, you'll have to use the full court, which is more complicated and could be costly.
If you're claiming the cost of repairs, make sure you have obtained sufficient evidence to prove your claim.
For example, collect expert reports and photographs before you allow another garage to repair the car.
If possible, it’s worth finding out if the dealer has enough money to pay your claim. It is not worth suing a person or a firm that has no money.
They also have a template letter of rejection:
[Your address]
[Manager/ Owner]
[Dealership address]
Dear Sir/ Madam
Ref: [registration number of vehicle]
On [date] I purchased, and took delivery of, the above vehicle [make and model] from you. On [date] I discovered that it was not of satisfactory quality: [describe the problem].
[The Sale of Goods Act 1979 requires dealers to supply goods of satisfactory quality.]
OR
[The Consumer Rights Act 2015 requires dealers to supply goods of satisfactory quality.]
However, the vehicle is clearly unroadworthy. You are therefore in breach of contract.
I am legally entitled to reject the vehicle and to be reimbursed for its full purchase price of [£xx]. I look forward to receiving your cheque for this sum within 14 days. If you fail to reimburse me I shall have no alternative but to issue a claim against you in the county court for recovery of the money without further reference to you.
Yours faithfully,
[Your name and signature]
Note that you should stop using the car straight away.