Read Job 38 in context. I believe God is making a point with Job that he's not in control. He's not saying that Job does know it's that he doesn't know. In the KJV the verse reads this way. "21Knowest thou it, because thou wast then born? or because the number of thy days is great?"