You can actually do both. Especially since God and the Bible are silent on the age of the Earth and all that surrounds us.
There are people who will swear up and down that it had to be 24 hour “days” (the term “day” is also used in some scriptural contexts to mean a bounded period of time) even though there is no (direct) account of the earth even being there until well into the creation “week.”
This is a modern brouhaha and ironically rests on “scientistic” ideas, such as a constant clock. Older sages, ignorant of science, still did not readily envision Adam being in an absurd hurry to name all the animals, for one thing.