The Catechism in Questions & Answers

65. When was the doctrine of the trinity of God formulated?

The trinity of God has existed from eternity. The doctrine of the trinity of God was formulated in the Councils of Nicaea (325 AD) and Constantinople (381 AD).
The doctrine of the trinity of God is among the fundamental statements of the Christian faith.

Council: see explanation to Question 33.