Gender ultrasound

Gabby

Whether it’s this pregnancy or a previous pregnancy, when was the earliest you were able to find out the gender of your baby with an ultrasound? I know some of used the blood test, but I was curious about an ultrasound. 2D 3D or even 4D!