According to the doctrine of the Trinity, Jesus is God. He thus is entitled to be described by the various attributes of God, such as omniscience. However, the following passage raises a tough question regarding this, because Jesus plainly refers to knowledge that he does not have:
36 “But of that day and hour no one knows, not even the angels of heaven, nor the Son, but the Father alone.
Another issue is raised by the following passage, where we are told that Jesus gained wisdom as a child, which indicates that he was not omniscient, at least in his childhood incarnation:
52 And Jesus kept increasing in wisdom and stature, and in favor with God and men.
How can Jesus's God nature, and specifically his omniscience be understood in light of these passages? My initial inclination is that in becoming human, he temporarily emptied himself of the independent use of his power (Philippians 2:6-7), but I wonder if there is more to it.
Answers should assume that Jesus is God.