Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8833881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:53:22+00:00 2026-06-14T08:53:22+00:00

The question is the in title. When I am showing the year list in

  • 0

The question is the in title. When I am showing the year list in Jquery-UI datepicker, can I control what year the list starts with?

UPDATED CODE

    $(".datepicker").datepicker({ 
     changeYear: true, 
     dateFormat: 'dd-M-yy', 
     altFormat: 'dd-M-yy', 
     minDate: '2001-01-01', 
     duration: ''
    });

I need the year list to start with 2001. Is this possible with this control? The code above doesn’t achieve this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:53:23+00:00Added an answer on June 14, 2026 at 8:53 am

    You could accomplish it a couple of different ways:

    $(".datepicker1").datepicker({ yearRange: "2001:2012", changeYear: true, defaultDate: new Date(2001,0,1)});
    
    $(".datepicker2").datepicker({changeYear: true, defaultDate: new Date(2001,0,1)});
    

    ​
    datepicker1 includes a defaultDate but it doesn’t have to. If you leave it out, it will default to today’s date and the year select will start with the current year.

    Note that datepicker2 includes the default year range in the year select box.

    yearRange

    http://jsfiddle.net/ymvNT/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The short question is: how can a subpage's <% content_for :title do 'Showing product'
Sorry for vague question title. I've got a table containing huge list of, say,
I have a question about jQuery UI Dialog boxes and showing dynamic content from
The question title is a bit strange because I'm not exactly sure how to
Apologies for the poor question title. I have two tables, jobs and Persons-Jobs. Jobs
I guess the question title sums it up. Is there a time when it
I think the question title is clear enough: is is possible to stable_sort() a
I think the question title seems to explain eveything. I want to detect whether
Sorry if the question title is confusing. Let me explain further. I am building
As the question title reads, assigning 2^31 to a signed and unsigned 32-bit integer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.