the requirement is that you must have been unemployed for 4 weeks. This means that you must be registered as unemployed in Jobcenter (at Jobnet.dk) for 4 weeks. Only periods where you are entitled to unemployment benefits (but not necessarily have got them paid out) can be included.
This means that quarantine periods counts towards the 4 weeks.