How early can they detect the gender

Lenee
I was wondering how early the doctors can detect the gender of the baby I will be 13 weeks an 4 days in my next doctors appointment an I am if we can at least try to figure out the gender