We went 2.5 years for ds8, 2 years for dd2.
I had to pump for a while when ds was 2 mos., due to surgery, but got back to it nearly immediately afterwards. Despite dr's recommendation to just stop. I sent that doctor away.

I recently weaned dd when she hit her tooth really hard and had to get away from everything that she might suck or pull on with her teeth while it healed up.