Wednesday, February 10, 2016

Date picker for getting year

<link href="~/Content/bootstrap_datepicker_css/datepicker.css" rel="stylesheet" />
<link href="~/Content/bootstrap_datepicker_css/datepicker3.css" rel="stylesheet" />





            $("#PatientYear").datepicker({
                format: "yyyy", // Notice the Extra space at the beginning
                viewMode: "years",
                minViewMode: "years",
                autoclose: true
            });



<script src="~/Scripts/bootstrap-datepicker.js"></script>





No comments:

Post a Comment