Click the "Try it" button to set the required property for the datetime field.
Tip: Click the "Submit" button before and after you have clicked the "Try it" button, to see the effect.
Note: input elements with type="datetime-local" are not supported in Internet Explorer or Firefox.