It happens continually. It starts in childhood but it continues all the way up to the point that women are looking to enter STEM careers. The leakiest point of the pipeline is the post-doctoral fellowship.
On May 16th, 2017. See this statement in context.