Wasn't the first thing he did 'let there be light' or whatever? Because he made light and dark and then form and stuff of the planet.... Or maybe it was a god's version of a day, if he has one. Hmmm. . .
Most creationists would have us believe that the term "day" in the creation record of Genesis means a literal 24 hour period, this isn't compatible with science. In the bible the term "day" can mean different periods of time, Genesis 2:4 says This is a history of the heavens and the earth in the time of their being created, in the DAY that Jehovah God made earth and heaven. 2 Peter 3:8 says One DAY is with Jehovah as a thousand years and a thousand years as one DAY.
Well, the sun might not have been created, but the earth was. A day is scientifically defined by the amount of time it takes for the earth to rotate once - 24 hours. You can have a day with no sun. Also, God did make light on the first day, we just aren't told where it came from. Genesis 1:5 says, "God called the light Day, and the darkness He called Night. And there was evening and there was morning, the first day." Even without the sun, there was still light - and a light and dark portion of a day, we just aren't told where the light came from.