You are citing a verse from Genesis 2, while the days of creation are detailed in Genesis 1. Instead of reading the Bible literally, you simply assume that Genesis 2 is a continuation of the narrative of Genesis 1, but the Bible nowhere says that. It is simply your interpretation which causes these apparent conflicts.
You seem to think gen 2 is an explanation of Gen I, where does it say that?
If your view of it is literal why does it change it from six days to generations and then to one day?
“You seem to think gen 2 is an explanation of Gen I, where does it say that?”
That doesn’t need to be stated explicitly, since it is the only reading of the text that doesn’t introduce contradictions. Since we must start with the principle that God doesn’t contradict himself, we must discount any reading that would appear to create such contradictions. Your interpretation, that Gen. 2 is a chronological continuation of Gen. 1, creates such contradictions, so it cannot be correct. Which only leaves us with the alternative, that it is detailing some of the same events already recounted in Gen. 1 in greater detail.
“If your view of it is literal why does it change it from six days to generations and then to one day?”
I’ve already explained that the word “generations” in Genesis doesn’t refer to periods of time, so there is no switch. You are creating that apparent “switch” by your confusing English meanings of words with the actual meanings of the Hebrew words they were translated from.