$(function() {
$('#datepicker').datepick({
multiSelect: 999,
monthsToShow: 3,
minDate: new Date(),
maxDate: '+1y',
showTrigger: '#calImg',
dateFormat: 'yy-mm-dd',
onSelect: function(value) {
alert(value);
}
});
});
this code block returns a string like that "Wed Jan 11 2012 12:00:00 GMT+0100"
.
How can I convert that string like that "2012-01-11 12:00:00"
?