JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<div id="datepicker"></div>
Fecha: <input type="text" name="fecha" readOnly>
CSS
.active{
color: red;
}
JavaScript
var meses = ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
fecha = $("input[name=fecha]");
$("#datepicker").datepicker({
onSelect: function(date){
var picker = date.split("/"),
nuevo = picker[1] + "-" + meses[picker[0] - 1] + "-" + picker[2];
fecha.val(nuevo);
}
});