Midnight in your local time zone. Or when your post-office closes if you are paper filing your return.
i completed and submitted my taxes via e-file @10pm Pacific Time. The date on the submission was 4/19/2017. Am I ok?