close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Date picker doesnt allow earlier than 1999

Thread began 9/17/2009 7:28 am by Dipo | Last modified 12/21/2009 10:27 am by Dipo | 5557 views | 10 replies

Jimmy Wu

The drop down initially shows a range of 20 years. Once you select an earlier year, the range changes to display earlier years with the year you choose to be the middle value. That is why it shows 1999-2019 initially, since it uses today's date as a default.

to display the date range to be what you want find this block of code in page you've applied the form to:
$(function(){
$('#fieldset_group_field').datepicker({
changeMonth: true,
changeYear: true,
onClose: closeDatePicker_fieldset_group_field
});
});

At this point you have an option of what you can do. After the line:
changeYear: true,

You can add either of these lines in:
yearRange: "1901:2009",

or

yearRange: "-108:+0",

The first one is a hardcoded date range, whereas the second one will change the date range as time progresses.


Here's a reference for if you want to change anything else on the Date Field:
datepicker/

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...