Possible DateTime improvements
Possible DateTime improvements

If I were doing a small wish list for the DateTime control, then ...
The select for the year would be disabled (or eliminated) if the minDate and maxDate year are the same, i.e., there would be no select for the year since 2011 is the only possible option:
opts: {
minDate: new Date('2011-03-01'),
maxDate: new Date('2011-10-31')
}
The months could be dynamic based on the year, i.e., this would have Oct, Nov, and Dec for 2011 and Jan, Feb, and Mar for 2012:
opts: {
minDate: new Date('2011-09-01'),
maxDate: new Date('2012-03-31')
}
Finally, the select for the month would be disabled (or eliminated) if the year and the month are the same, i.e., there would be no select for the month or the year since July 2011 are the only possible options:
opts: {
minDate: new Date('2011-07-01'),
maxDate: new Date('2011-07-31')
}
This question has an accepted answers - jump to answer
Answers
Excellent list of suggestions - thank you! All very good ideas - I've added them to my list
Allan