When will I know my babies gender?

Hi this is my first pregnancy just curious on when I will get to know the gender