You can log in to a game, even opt to use your pass, prior to the new day starting. BUT don't play your first shot until the new day starts.
It used to be , as you said, if you were playing when the new day started it would count towards your next day but that was changed a while ago.