Pregnancy test

How early can I take a pregnancy test? I am due for my period around June 30th