Pregnancy test

I'm supposed to be starting my period in next couple days and took a pregnancy test first thing this morning and came up positive. I took another test later in the afternoon and came up negative.. I'm hoping the first one was right. Which is more accurate