jquery date picker - limit the date selection

Can anyone please let me know how to disable the previous dates from the current date and the next dates after the 6months (from the current date) in date picker.  I need to allow the user to select only the dates from current date and next 6 months dates, rest all dates should be disables and non select able.
Gangadhara MelukoteAsked:
Who is Participating?
leakim971Connect With a Mentor PluritechnicianCommented:
Test page : http://jsfiddle.net/NGVtK/
var d = new Date();
    minDate: 0,
    maxDate: new Date(d.getFullYear(), d.getMonth() +6, d.getDate())

Open in new window

Gangadhara MelukoteAuthor Commented:
Thanks leakim971. This worked good!!
so close the question... :(
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.