If you have a Google account, you can save this code to your Google Drive.
Google will ask you to confirm Google Drive access.
Save file as:
If you have saved a file to Google Drive, you can open it here:
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" do not show as any datetime field/calendar in any of the major browsers, except Safari.