My ducks are only 5 weeks old so I haven't done this yet. But what I have read and been told is that you keep them in a fenced in area with their coop for 6 weeks. Each night give them treats in the coop and say a word "bed time" "treats" "dinner". After 6 weeks they should understand that...