Girl or boy—when can I know?

A lot of people assume that the ultrasound at 18-20 weeks is to reveal the sex of the baby. Not exactly.