When can they tell gender?

Ali
Some articles say 12 weeks, some say not til the 20th week. When can a gender/sex be seen??