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

Code Example 1

<label for="start-date">Starts on:</label>
<input type="date" id="start-date" name="start_date" />

Code Example 2

<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday">

Learn ReactJs, React Native from akashmittal.com