JSFiddle - React, Tailwind, and code Playground
by deepakb
HTML
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<input type="text" class="txtDate" />
JavaScript
$(function() {
$('.txtDate').datepicker({
dateFormat: 'dd-mm-yy',
showButtonPanel: true,
changeMonth: true,
changeYear: true,
defaultDate: new Date(),
});
});