I bf until my boy was 1yo. my work place quite flexi with timing so i could pump during my free time. i returned to work immediately after 12weeks of ML.
reason i stopped was bcos my boy rejected latching on and if he dont latch, i gotta pump 5-7 times a day to empty my breasts. and at that time, i've already stocked up 1/2 yr's worth of frozen milk, so i decided to stop pumping
if your workplace is breastfeeding frenly then you can definitely bf until 2 yo