I must have missed the How part. All I see is “God said” which means creation is by his command but says nothing about how that is accomplished. The Bible says in Exodus 9:23 “Then Moses stretched out his staff toward heaven, and the LORD sent thunder and hail, and fire ran down to the earth. And the LORD rained hail upon the land of Egypt.” Now we understand how rain and hail is formed and that is not found in the Bible.
And how much Hebrew grammar do you know? Day, in English or Hebrew, can mean many different things and there is nothing in the text that indicates it has to be taken to mean a period of time from sunrise to sunrise. Especially given the sun wasn’t created on Day One.