eternicode/bootstrap-datepicker — pull request #58 by loekwetzels (2012-04-27 18:10:17+00:00)
Title: Added 2 new events for: picking a month + picking a year

I've added 2 new events: 'pickMonth' and 'pickYear'. These are triggered when the user picks a month (in the year view) or year (in the decade view).

possible use case:

$('#datepicker')
.datepicker({startView:'year'})
.on('pickMonth', function(ev){
var dateObj = new Date(ev.date.valueOf());
var m = dateObj.getMonth()+1;
var y = dateObj.getFullYear();
window.location = '/calendar/'+y+'/'+m;
});

Let me know what you think! :)