Scientists date the birth of our solar system to about 4.5 billion years ago and the universe to about 13.7 billion years ago.
These scientific notions about the origin of the universe and our solar system are based on a variety of dating techniques, none of which appeal to ancient myths or legends.* The YECs use this belief about a recent creation as the main motivating force to find fault with anything science claims that conflicts with their faith.
The main purpose of creationism and intelligent design is to defend a set of religious beliefs.
A scientific theory like the theory of natural selection is not based on a text.
Science also often studies causal events that can't be observed such as cigarette smoke causing cancer.
Some pseudoscientific ideas confuse metaphysical claims with empirical claims, e.g., acupuncture, alchemy, cellular memory, Lysenkoism, naturopathy, reiki, Rolfing, therapeutic touch, and Ayurvedic medicine.
They already "know" the truth: it's in their sacred text.
So, their whole function is to deny and try to find fault with any scientific claim that is inconsistent with their interpretation of the Bible.*Some pseudoscientific ideas can't be tested because they are so vague and malleable that anything relevant can be shoehorned to fit the claim, e.g., the enneagram, iridology, the notion of multiple personality disorder, the Myers-Briggs Type Indicator®, the ideas behind many New Age psychotherapies, and reflexology.
All it would take would be to find the presence of mammals in the pre-Cambrian fossil beds or human and dinosaur fossils in the same sedimentary layer.
Creationists, on the other hand, are apologists for the faith, not scientists interested in discovering the truth about the world.