God created night and day on the first day.
The sun was created on the fourth day. Until the fourth day it was not possible to have a 24 hour day.
It had GOD, the sun does not determine light, the One Who Is LIGHT gives light and the thus the moon and the sun just added to the distinction.
The Light Which Created the sun, is so bright the sun is not visible in HIS presence.
This is what evolutionists cannot comprehend, the truth light comes from the creator. The sun is but a symbol of the day, while the moon is the symbol of the night, which were created after HE created the days and nights