Check out example codes for "date time local html". It will help you in understanding the concepts better.

Code Example 1

<label for="birthdaytime">Birthday (date and time):</label>
<input type="datetime-local" 
  id="birthdaytime" name="birthdaytime">

Learn ReactJs, React Native from akashmittal.com