I have pretty straight forward MobiScroll date component initialization code as follows.
function attachMobiDate(id) {
var now = new Date();
$('#'+id).mobiscroll().date({
minDate: new Date(now.getFullYear(), now.getMonth(), now.getDate()),
dateFormat: 'dd, M yyyy',
theme: 'android',
display: 'modal',
mode: 'scroller',
startYear: 2000
});
}
Everything is working perfectly. The start year is not getting set. The UI only showing me 2013 and 2014. However, if I set 'endYear' to 2020 its working fine. May I now whats going wrong here?