JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/smoothness/jquery-ui.css">
<script src="http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
<div>
    <label>Text</label> 
    <input id="fromdate" type="text"/> 
    <input id="fromtime" type="text"/> 
    &nbsp;
    &nbsp;
    <label>Text2</label> 
    <input id="todate" type="text"/>
    <input id="totime" type="text"/> 
    
    <div class="spinner" id="reportSpinner"></div>
    <script>
        $(function() {
        $.datepicker.setDefaults($.datepicker.regional['en-GB']);
$("#fromdate, #todate").datepicker({"dateFormat": 'yy-mm-dd'});
        });
    </script>
</div>