I just researched this. According to the bible,
1. Our Earth is older than the sun and the
moon.
2. Our sun is the oldest star in the
universe.
3. Yet light was created before the
sun.
4. Day and night were created earlier than the
sun.
5. Day and night are independent of the
sun.
6. Before all the above was created, there were
only two things. Water below and darkness above.
7. This applied throughout the universe. Water
"down" and darkness "up". What to do, the concept of round earth
was not known. Refer to day and night being independent of the
sun.
8. I assume water was "down" because god
hovered "over" the water.
Quoting Genesis:
In the beginning God created the heavens and the
earth. Now the earth was formless and empty, darkness was
over the surface of the deep, and the Spirit of God was
hovering over the waters.
And God said, “Let there be light,” and there was
light. God saw that the light was good, and he separated
the light from the darkness. God called the light “day,”
and the darkness he called “night.” And there was evening,
and there was morning—the first day.
<animals, plants and dry land created...>
And God said, “Let there be lights in the vault of the sky to
separate the day from the night, and let them serve as signs to
mark sacred times, and days and years, 15 and let them
be lights in the vault of the sky to give light on the earth.” And
it was so. God made two great lights—the greater light to
govern the day and the lesser light to govern the night. He also
made the stars. God set them in the vault of the sky to
give light on the earth, to govern the day and the night, and to
separate light from darkness. And God saw that it was good.
And there was evening, and there was morning—the fourth day.
While I commend you for taking time to read the Bible, I cannot
commend you for failing to interpret it correctly. You are taking a
fault-finding approach. Just a short comment should
suffice.
You don't need the sun to have day and night. All you need is a
directional light source and a rotating earth. And the sun is not
the only thing that gives out light. God is light. When Jesus was
transfigured He shone brighter than the sun. God caused a temporary
light source which was replaced by the sun on day four of creation
week.
See http://creation.com/light-life-and-the-glory-of-god
and
http://creation.com/how-could-the-days-of-genesis-1-be-literal-if-the-sun-wasnt-created-until-the-fourth-day