Jesus did not have this knowledge because Jesus himself said that "the Father is greater than I am." John 14:28
Jesus also said that "The Son cannot do a single thing of his own initiative, but only what he beholds the Father doing". (John 5:19)
Jesus is not God. Jesus himself said that only the Father is God: “Father...this means everlasting life, their taking in knowledge of YOU, THE ONLY TRUE GOD, and of the one whom you sent forth, Jesus Christ." (John 17:1-3)
Some may argue that Jesus only said these things because he was only a man when he said them. But even after Jesus went to heaven he was described as having a subordinate role to God:
"But I want YOU to know that the head of every man is the Christ; in turn the head of a woman is the man; in turn the HEAD OF CHRIST IS GOD." (1 Cor. 11:3)
God exalted Jesus to His "right hand"...not as God Himself:
"God exalted him at his right hand." (Acts 5:31)
(Note that not only is God a separate person here but Jesus was exalted to a secondary position.)