Pregnancy Test

When is the best time to take a pregnancy test? In the morning? Afternoon or night? I'm new to this so I need all the help I can get. And If so what time in the day?