JSFiddle - React, Tailwind, and code Playground
HTML
<input type="date" id="Date" />
<input type="button" value="click" id="btn" />
JavaScript
$("#btn").click(function(){
var date_selected = $("#Date").val().split("-").reverse().join("-");
alert("copy this value >>"+date_selected+"\n and paste this in that date");
})