Millions of years ago. Science backs up the Bible.
In Peter the 3 ages are spoken of
In Isaiah God tells us He did not create THE EARTH null and void but TO BE INHABITED
In In Job God is describing how he created it and who was there (keep reading to find animal with tail like a cedar) only one of those have ever walked the earth
In Ezekiel is a description of Satan going from protecting the mercy seat, to iniquity found in him
In Revelation how it caused a war,
In Jeremiah God rendering that "age" to perish, but not making a full end, but the heavens made black (that would sure be an ice age and a killer of dinosaurs)
In Genesis the earth (already here) in darkness, null and void.
If you can get it in the Hebrew, it becomes more clear.
just for reference of contrast
Genesis 7:17 And the flood was forty days upon the earth; and the waters increased, and bare up the ark, and it was lift up above the earth.
Genesis 7:18 And the waters prevailed, and were increased greatly upon the earth; and the ark went upon the face of the waters.
Genesis 7:19 And the waters prevailed exceedingly upon the earth; and all the high hills, that were under the whole heaven, were covered.
Genesis 7:20 Fifteen cubits upward did the waters prevail; and the mountains were covered.
Genesis 7:21 And all flesh died that moved upon the earth, both of fowl, and of cattle, and of beast, and of every creeping thing that creepeth upon the earth, and every man:
Genesis 7:22 All in whose nostrils was the breath of life, of all that was in the dry land, died.
Genesis 7:23 And every living substance was destroyed which was upon the face of the ground, both man, and cattle, and the creeping things, and the fowl of the heaven; and they were destroyed from the earth: and Noah only remained alive, and they that were with him in the ark.
Genesis 9:14 And it shall come to pass, when I bring a cloud over the earth, that the bow shall be seen in the cloud:
Genesis 9:15 And I will remember my covenant, which is between me and you and every living creature of all flesh and the waters shall no more become a flood to destroy all flesh.
So we know there will never be a world wide flood again It rained for 40 days and nights. It was a slow but steady flow of water. We know that the 8 Adamic souls lived. We know that all the trees didn't die, God gave us the olive branch.
AND TO STOP THOSE WHO WOULD SAY "NOAHS FLOOD" KILLED THE DINOSAURS AND ALL THE OTHER "STUFF" BEFORE YOU DO PREPARE TO EXPLAIN 6 CREATION DAYS THAT TOOK PLACE AFTER THAT
2 Peter 3:5 For this they willingly are ignorant of, that by the word of God the heavens were of old, and the earth standing out of the water and in the water:
2 Peter 3:6 Whereby the world that then was, being overflowed with water, perished
2 Peter 3:7 But the heavens and the earth, which are now, by the same word are kept in store, reserved unto fire against the day of judgment and perdition of ungodly men.
THE WORLD THAT THEN WAS
Isaiah 45:18 For thus saith the LORD that created the heavens; God himself that formed the earth and made it; he hath established it, he created it not in vain, he formed it to be inhabited: I am the LORD; and there is none else.
Isaiah 45:19 I have not spoken in secret, in a dark place of the earth I said not unto the seed of Jacob, Seek ye me in vain: I the LORD speak righteousness, I declare things that are right.
Job 38:4 Where wast thou when I laid the foundations of the earth? declare, if thou hast understanding.
Job 38:5 Who hath laid the measures thereof, if thou knowest? or who hath stretched the line upon it?
Job 38:6 Whereupon are the foundations thereof fastened? or who laid the corner stone thereof;
Job 38:7 When the morning stars sang together, and all the sons of God shouted for joy?
Job 38:8 Or who shut up the sea with doors, when it brake forth, as if it had issued out of the womb?
Job 38:9 When I made the cloud the garment thereof, and thick darkness a swaddlingband for it,
Job 38:10 And brake up for it my decreed place, and set bars and doors,
Job 38:11 And said, Hitherto shalt thou come, but no further: and here shall thy proud waves be stayed?
just for starters
Ezekiel 28:12 Son of man, take up a lamentation upon the king of Tyrus, and say unto him, Thus saith the Lord GOD; Thou sealest up the sum, full of wisdom, and perfect in beauty.
Ezekiel 28:13 Thou hast been in Eden the garden of God; every precious stone was thy covering, the sardius, topaz, and the diamond, the beryl, the onyx, and the jasper, the sapphire, the emerald, and the carbuncle, and gold: the workmanship of thy tabrets and of thy pipes was prepared in thee in the day that thou wast created.
Ezekiel 28:14 Thou art the anointed cherub that covereth; and I have set thee so: thou wast upon the holy mountain of God; thou hast walked up and down in the midst of the stones of fire.
Ezekiel 28:15 Thou wast perfect in thy ways from the day that thou wast created, till iniquity was found in thee.
Revelation 12:3 And there appeared another wonder in heaven; and behold a great red dragon, having seven heads and ten horns, and seven crowns upon his heads.
Revelation 12:4 And his tail drew the third part of the stars of heaven, and did cast them to the earth: and the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born.
God Destroying the 1st earth age
Jeremiah 4:19 My bowels, my bowels! I am pained at my very heart my heart maketh a noise in me I cannot hold my peace, because thou hast heard, O my soul, the sound of the trumpet, the alarm of war.
Jeremiah 4:20 Destruction upon destruction is cried for the whole land is spoiled suddenly are my tents spoiled, and my curtains in a moment.
Suddenly
Jeremiah 4:21 How long shall I see the standard, and hear the sound of the trumpet?
Jeremiah 4:22 For my people is foolish, they have not known me they are sottish children, and they have none understanding: they are wise to do evil, but to do good they have no knowledge.
Done with wrath
Jeremiah 4:23 I beheld the earth, and, lo, it was without form, and void and the heavens, and they had no light.
Jeremiah 4:24 I beheld the mountains, and, lo, they trembled, and all the hills moved lightly.
Jeremiah 4:25 I beheld, and, lo, there was no man, and all the birds of the heavens were fled.
THERE WAS NO MAN, THAT MEANS NO MAN
Jeremiah 4:26 I beheld, and, lo, the fruitful place was a wilderness, and all the cities thereof were broken down at the presence of the LORD, and by his fierce anger.
cities broken down by His fierce anger, not with flood
Jeremiah 4:27 For thus hath the LORD said, The whole land shall be desolate; yet will I not make a full end
becAme Null and Void
Jeremiah 4:28 For this shall the earth mourn, and the heavens above be black (THINK ICE AGE) because I have spoken it, I have purposed it, and will not repent, neither will I turn back from it.
Jeremiah 4:29 The whole city shall flee for the noise of the horsemen and bowmen; they shall go into thickets, and climb up upon the rocks: every city shall be forsaken, and not a man dwell therein.
Jeremiah 4:30 And when thou art spoiled, what wilt thou do? Though thou clothest thyself with crimson, though thou deckest thee with ornaments of gold, though thou rentest thy face with painting, in vain shalt thou make thyself fair; thy lovers will despise thee, they will seek thy life.
THE WORLD THAT IS
Genesis 1:1 In the beginning God created the heaven and the earth.
Millions of years ago
Genesis 1:2 And the earth was (BECAME) without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.
This is our beginning having been cast down to earth, we are in the flesh. AND when we die, we return to God.
Ecclesiastes 12:7 Then shall the dust return to the earth as it was: and the spirit shall return unto God who gave it.