About how soon can you test????

Me

How soon can the pregnancy test from the dollar store or dollar tree detect pregnancy? Can you take it 5-6 days before a missed period?