i have go through a few guide available here and this guide doenst help on console. can anyone help how can i make my date field Years drop down in console showing previous years?


3 Answers 3


You can have a look at this.Pretty neat.


  • I have tried that but it does not take effect in my service cloud console. Commented Dec 19, 2013 at 4:04
  • Are your sure because I implemented this in a vf page and checked it in the service console. Works for me. You can try checking if there are any jquery errors in the javascript console.
    – swatkat
    Commented Dec 19, 2013 at 12:36
  • i am using standard console contact layout and have section which is VF page. i added the script in it but doesn't help. Commented Dec 20, 2013 at 9:11
  • I am using this @swatkat and i will try to check dynamic date every year , very thanks full for help us.
    – Rajesh Kr.
    Commented Oct 14, 2016 at 11:33

Hi as salesforce doesn't show this feature till before launch of winter 14 ,as winter14 release as new feature where we can use html5 in VisualForce pages.

use this tag

here is tag

<apex:page  docType="html-5.0">
      <apex:inputField value="{! Contact.Birthdate }" type="date" 

note in order to excetue html5 tags use docTyep="html-5.0"

for more reference follow this link


here is my code we are try this .

<script src ="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    $(window).load(function (){
    var d = new Date();
    var vdate = document.getElementById("calYearPicker").innerHTML = d.getFullYear();
      for(var i=1900; i<= vdate+1; i++){
        $("#calYearPicker").append("<option value= '"+ i +"'>"+i+"</option>")

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .