Prevent form submission when air date time picker is empty

I have set it so that the next button cannot be pressed when the value of the air date time picker is from , but how can I do this with custom state?