They remember everything
First, spells do what they say they do. None of these spells state that they suppress the consciousness or awareness of the victim in any way. I very much doubt that doing so would be the default (if we can even speak of something like that in the case of magic) and it should be understood from the context alone as obvious, so that it would not merit a mention.
This is also supported by the existence of the Enchanter Wizard feature Alter Memories:
When you cast an enchantment spell to charm one or more creatures, you
can alter one creature's understanding so that it remains unaware of
being charmed. Additionally, once before the spell expires, you can
use your action to try to make the chosen creature forget some of the
time it spent charmed. (PHB 117)
If you want to achieve the effect you describe, consider being an Enchanter.