Ours were born and raised in the house for at least 2mths each so the imprinting is pretty strong...
We let our ducks and chickens out every evening about 1-2hrs before sunset so they can free range some...They will put themselves away shortly after the sun sets and before it's dark every night...