JSFiddle - React, Tailwind, and code Playground

by Donal Devine

HTML

<script src="http://www.eyecon.ro/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<link rel="stylesheet" href="http://www.eyecon.ro/bootstrap-datepicker/css/datepicker.css">
<link rel="stylesheet" href="http://www.eyecon.ro/bootstrap-datepicker/css/bootstrap.css">
<button id="btn-utilisation-calendar" name="btn-utilisation-calendar" class="btn"><i class="far fa-calendar-alt"></i></button>

CSS

body {
    padding: 10px;   
}

JavaScript

$('#btn-utilisation-calendar').datepicker()
	.on('changeDate', function(ev){
        $('#button').datepicker('hide');
        alert(ev.date.valueOf());
    });