Within the first two weeks of flowering (often in the first week). You can put plants into flower early to the point of determining sex then chucking the males and putting the females back into veg.