God did these things on the first day that the universe existed.
This refers to the whole day. In the Jewish culture, a day begins when the sun sets.