Check out example codes for "bootstrap datepicker format dd-mm-yyyy". It will help you in understanding the concepts better.

Code Example 1

<input type="text" value="02/16/13" data-date-format="mm/dd/yy" id="dp2">

Learn ReactJs, React Native from akashmittal.com