It took God seven days (and one day to rest) to create the world.
Before the earth and sun were created there was no such thing as a day.
Soooooo….He had to create days before he began working.
But there cannot be days without a manifested universe.
He’s a tricky ole Bastard.