I have heard between 3 and 6 months is fine. Regardless her age, you can't force the mare to want to nurse the filly when she doesn't want to.
As long as the foal will still be getting the correct nourishment, there won't really be much harm done. She should be mostly eating grass ect. Right now anyway..