Both are due on the 31st of January following the end of the tax year. For example, for the tax year ending 5th April 2022, the deadline is 31st January 2023.
If your tax bill is more than £1,000 you will also need to budget for making a payment ‘on account’ by 31st July each year. The payment on account due will be half of this year’s tax bill.