Pregnancy test

When is the best time to take a pregnancy test? First thing in the morning or at night?