A day ends at 23:59:59 = 11:59:59 pm, that is shortly before midnight.