It is not mandatory, however, all children in Denmark are guaranteed a place in a childcare institution, and almost all Danish families use child daycare. See this link for details.