There is evidence that the Earth is at least 4.5 billion years old in rock formations, it is also likely that since the early Earth was too hot to form solid stone so the Earth is likely older.
I pulled this nonsense off the internet
The age of the Sun is estimated to be around 4.6 billion years, as determined by radioactive dating. Meteorites, meteors or comets that survive impact with Earth's surface, along with Moon rocks and other space debris, can be dated using such a method and give us some idea of the age of the Sun and Solar System.
The Sun is a ball of gas that does not form meteorites, so the article is nonsense. So for all we know the Sun could be 10 billion years old with no logical way to date. The Sun's age of 5 billion years is extrapolated from Earths age but is not conclusive. But assholes like you know that every theory is fact