JSFiddle - React, Tailwind, and code Playground
by wintlu
HTML
<input type="text" id="datepicker"/>
JavaScript
$(function(){
$('#datepicker').datepicker(
{dateFormat: 'mm yy'}
);
$('#datepicker').datepicker('setDate', new Date(2010, 10, 1));
var d = $("#datepicker" ).datepicker('getDate');
alert(d); //this should alert 2010,10,1, but it is not!
});