The word "day" is defined the first time it is used -- the first time it appears is the Bible:
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. Genesis 1:1-5All of the days of creation are described the same way:
The trees are made on the third day and the sun isn't made until the fourth day. Trees can't survive without sunlight for millions of years. The days of Creation were not long periods of time, the days of Creation were normal, 24 hour, solar days.