Should be obvious. Today is the last day of the old Senate session. Tomorrow is the first day of the new one. Smith becomes Senator on the first day.
That and he got paid up to today.
So he could put “ til ‘18 on his resume.