The length of time you commit to for breastfeeding is a personal choice between a mother and her baby. Some mothers commit to doing if for the amount of time they are off for maternity leave while others decide between six months to a year.
A little known fact is that the World Health Organization (WHO) recommends two years at least as best due to the low rate of illnesses in children attributed to extended breastfeeding.