It takes a few days, but it's easy to get them into a routine. Divide their food into two meals, then feed them in seperate bedrooms. Leave them with their food for around 20 minutes, after that pick up the food and don't feed them again until night. At night do the exact same thing. After a day or two they will learn that they need to eat their food when you feed them.