Actually, according to the Bible it was the fourth day when God created the sun and moon.
Then God said, "Let there be light"; and there was light. And God saw the light, that it was good; and God divided the light from the darkness. God called the light Day, and the...