A passport is valid throughout the whole of the EU right up until its nominal expiry date. (It's EU law. All member states MUST admit you, even if there are only a few minutes left on the passport). So, as long as you're travelling within the EU you'll have no problems.
A FEW other countries (among those popular as tourist destinations with UK travellers) impose a minimum period of validity of passports. You can check n the requirements of any particular non-EU country here:
http://www.fco.gov.uk...el-advice-by-country/
Chris