If you plan to stay in an EU Member State for no more than 90 days in any 180-day period, which means a period of 180 days preceding each day of stay, the following rule applies to the entry of third-country nationals:

The passport must be valid for at least 3 months after the intended date of return from the territory of the Member State.