When did you find out gender?

Ariel
How many weeks was you guys when u found out gender? I read online 18-20 weeks but my first and second was around 16weeks!  Also when did u hear baby heart beat on the Doppler?