JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<input type="text" id="datepicker" />
<input type="button" id="getDate" value="get date"/>
JavaScript
$(document).ready(function() {
$('#datepicker').datepicker({ dateFormat: 'dd-mm-yy' });
$('#getDate').click(function(){
alert($('#datepicker').datepicker("getDate"));
});
});