Check out example codes for "html add mindate to datetime-local picker". It will help you in understanding the concepts better.

Code Example 1

    <label for="party">Enter a date and time for your party booking:</label>
    <input id="party" type="datetime-local" name="partydate" min="2017-06-01T08:30" max="2017-06-30T16:30">

Code Example 2

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

Learn ReactJs, React Native from