The American Academy of Pediatrics recommends breastfeeding your child until two to three years of age. Weaning is your sole discretion if you think your baby is getting enough nutrients from solid food. But remember that whole milk should only be given as a beverage and not as breastmilk or formula substitute.