I am using http://vitalets.github.io/bootstrap-datepicker/ bootstrap datepicker for user to select there date of birth, all user are above 60, I want to allow them to select year first, then month and date, this plugin support year first, but its showing 2014 when datapicker if focus, I want default selected to be 1950,
<script> $(document).ready(function () { var currDate = 1; var currMonth = 1; var currYear = 1950; var dateStr = new Date(currMonth + "/" + currDate + "/" + currYear); $("#DOB").datepicker({ viewMode: 'years', startDate : dateStr }); }); </script>