I'm trying to add class containing date to each cell in inline Datepicker. Here is my initialization code:
var currentTime = new Date();
var maxDate = new Date(currentTime.getFullYear(), currentTime.getMonth() +1, 0);
$( "#calendar_wrapper1" ).datepicker({
inline: true,
changeMonth: false,
minDate: "0",
maxDate: maxDate,
beforeShowDay: function(date) {
return [true, "d_" + date.getYear() + '_' + (date.getMonth() + 1) + '_' + date.getDay()];
}
});
This returns class d_115_12_3 for 30 dec. 2015, only month seems to be shown correctly or I don't understand which format is this.
Made jsfiddle of this: https://jsfiddle.net/NorthSea/8xg1w842/