Two datepickers on the same site
If I try to nitialize both with values the first one cant do it. I try to set January of the current year but he every time placed the February and if I select January he jump to December (previous year) !
The same jumoing happens if I select one in the first date picker and click into the second, than the first date picke jumps to december (prev year)?
some code :
var myDate = new Date();
$(document).ready(function() {
$("#datepickerF").kendoDatePicker({
value: new Date(myDate.getFullYear(), 1, 1),
// defines the start view
startView: "year",
// defines when the calendar should return date
depth: "year",
// display month and year in the input
format: "MMMM yyyy",
change: function(){return false;}
});
$("#datepickerT").kendoDatePicker({
value: myDate,
// defines the start view
startView: "year",
// defines when the calendar should return date
depth: "year",
// display month and year in the input
format: "MMMM yyyy",
change: function(){return false;}
});
and
<input id="datepickerF" value=""/>
<input id="datepickerT" value=""/>