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?


You can have a look at this.Pretty neat.


  • I have tried that but it does not take effect in my service cloud console. – user2074703 Dec 19 '13 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 Dec 19 '13 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. – user2074703 Dec 20 '13 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. Oct 14 '16 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>")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.