The night is the dark time.
Evening stops at midnight.
Sometimes evening is used to mean the time from about sunset till later, but stopping before 12, for example till bedtime.
After afternoon & before the evening finishes, by going to bed, or some other event.
An evening out, finishes when you get home.