Gender reveal

How many weeks do you have to be in order to know the gender at a regular ultrasound visit?