JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker3.css">
<script src="https://rawgit.com/uxsolutions/bootstrap-datepicker/master/js/bootstrap-datepicker.js"></script>
<input type="text" id="datepicker" data-date-format="yy-mm-dd" />

JavaScript

// See the Javascript console when running this fiddle.

$(document).ready(function() {
  var dp = $('#datepicker');
  dp.datepicker({
  	format : "dd.mm.yyyy",
    language: "fr-CH",
    todayHighlight: true,
        todayBtn: true,
  });

  //dp.datepicker('setDate', new Date('2012-01-10'));
  // Will print correct date value here.
  console.log(dp.datepicker('getDate'))

  dp.datepicker('setStartDate', new Date('2012/01-05'));
  // Result will be null here!
  console.log(dp.datepicker('getDate'))
});