https://aabentlandbrug.dk/faq <- In Danish though. Dairy cows must have access to pastures from April 15th until November, for at least six hours per day.
Inside a cow must have at least 6.6 - 8m2, depending on the size of the cow.
Note that the rules are worse for cows breed for meat.