I am using bootstrap datepicker and my code is like following, Demo of the code on jsfiddle
Notice that in the version of 1.2.0 the viewMode has changed to startView.
eg:
$('#sandbox-container input').datepicker({
startView: 1,
minViewMode: 1
});
http://eternicode.github.io/bootstrap-datepicker/?markup=component&format=yyyy&weekStart=&startDate=&endDate=&startView=2&minViewMode=2&todayBtn=false&language=zh-CN&orientation=auto&autoclose=on&forceParse=on#sandbox