How long should you wait to take the pregnancy test?

I was getting negatives weeks before and I'm 6 days late for my period. Does it also matter what time of day you take it?