Ho questo codice di esempio:Come ottenere data, mese, anno in jQuery UI datepicker?
<div id="calendar"></div>
$(document).ready(function() {
$('#calendar').datepicker({
dateFormat: 'yy-m-d',
inline: true,
onSelect: function(dateText, inst) {
var month = dateText.getUTCMonth();
var day = dateText.getUTCDate();
var year = dateText.getUTCFullYear();
alert(day+month+year);
}
});
});
Quando eseguo il codice, c'è un errore. Come ottenere questo (date, month, year)
?
potrebbe essere simile a [questa domanda] (http://stackoverflow.com/questions/2562986/getdate-with-jquery-datepicker) – KevinIsNowOnline