When should a female dog be spayed?

The best time is at 6 months of age.