Why the pronunciation needs a little practice
Unlike Swedish and Norwegian, which commonly write their corresponding greeting as two words, Danish normally writes Godnat as one. In speech, the first part is less strongly stressed than the final syllable. The d in god is not pronounced like a prominent English d in this expression. Similarly, the final consonant of sødt in a dreaming wish can be difficult for learners. Start with a rough approximation and listen to a speaker rather than aiming for a letter-by-letter reading.
From a courteous farewell to a bedtime message
Godnat works by itself when the day is over. Sov godt expresses a more direct wish about the person’s sleep, and is suitable when someone is heading to bed after a long day. Drøm sødt is more affectionate, making it a good choice for a message to a partner or a child. If you are leaving a gathering and your friends are staying out, avoid assuming that they are going straight to bed. A more general farewell may better reflect their plans.
Using Danish without overcomplicating the grammar
Sov and drøm are imperative forms of the verbs sove and drømme. In these conventional wishes, they express goodwill rather than a demand. The forms work when speaking to one person or several, so you need not learn a different version for a group of hosts. When someone says Godnat to you, you can simply return the wish. If you meet somebody after dinner instead, Godaften or Hej is the appropriate kind of opening. Save the night-time wish for your eventual departure.