0

I want to add year option in sharepoint list datepicker column, since it does not allow to pick year except to swap 12 months back can someone suggest somthing?

Ohana
  • 19
  • 1
  • 6

1 Answers1

0

No option for this, use jQuery Datapicker instead.

$( "#datepicker" ).datepicker({
      changeMonth: true,
      changeYear: true
    })

Update:

Insert the script into your list form(new forum/edit form),update the "Time" as your field title.

<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />

    <script type="text/javascript">
        $(document).ready(function () {
            $('input[title="Time"]').datepicker({
                changeMonth: true,
                changeYear: true
            })
            $('input[title="Time"]').parent().siblings().hide();
        });
    </script>

enter image description here

Lee
  • 5,305
  • 1
  • 6
  • 12