When a doctor is able to determine the sex of the fetus during an ultrasound, which stage of development is the fetus in?

third trimester
blastocyst formation
first trimester
second trimester

Second trimester