I knew a member at my church years ago who worked at Caltech.
He demanded to know if I thought God was incapable of creating the light from distant stars on its way to earth and thus only give the appearance of immense age. Same thing with the geologic record on Earth, which evidences eons of time having passed
“Of course God can do that,” I told him. “But why would He?”
The fellow was non-plussed. The discussion had apparently never turned to that previously.
“The age of the universe is a point of dispute between the Bible and the opinion of the majority of astronomers today. The Bible implicitly teaches us about the age of the universe. In other words, it gives us sufficient information so that we can compute approximately how long ago God created the universe. The Bible teaches that the entire universe was created in six earth-rotation days (Exodus 20:11 ). Furthermore, the Bible provides the age differences between parents and descendants1 when listing certain genealogies. From these kinds of biblical references, we know that the elapsed time between Adam and the birth of Christ was roughly 4,000 years. From other historical records, we know that Christ was born roughly 2,000 years ago. Since Adam was created on the sixth day of the creation week, we can conclude that the earth, the entire universe, and everything in it were created approximately 6,000 years ago.” — Source: https://answersingenesis.org/answers/books/taking-back-astronomy/the-age-of-the-universe-part-1/