One or two days in Copenhagen is enough. One day in the city, you can see the Little Mermaid and other things. There are also Danish icons, and you always have to see the castle in the northern suburbs. One day.
If it’s the whole territory, it depends on how you want to play. It only takes 3 hours to take a train to the cities in the west of Denmark, and it may take a little longer to get to the northern part of the big island. Many cities are very similar. If we talk about the whole country, my personal opinion is 2 days in Copenhagen, one day in Hans Christian Andersen's former residence in Odense, and one day in Legoland on the Big Island. It doesn't really count the travel in between, but it doesn't take much time. I have never been to the two big cities further north, so I won’t say more about them. It is said that you can see the intersection of the two seas from the northernmost point of the big island, but I have never been there because it is too far.