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 7632647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:40:45+00:00 2026-05-31T06:40:45+00:00

I need to create a jQuery ui datepicker that will let users choose a

  • 0

I need to create a jQuery ui datepicker that will let users choose a start week of the year, and an ending week of the year. IE: Always Sunday – Saturday. Is this possible?

  • 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-05-31T06:40:46+00:00Added an answer on May 31, 2026 at 6:40 am

    DatePicker can restrict a user’s selection, but only as far as restricting the user between two dates (minDate and maxDate options). As far as I’m aware, there’s no built in functionality that can restrict selection to only Sundays or Saturdays.

    DatePicker does however have a means of calculating the week of a user’s selection with the following snippet of code:

    $.datepicker.iso8601Week(new Date(dateText))
    

    You can see how this could be utilised in the following jsFiddle (read below, first).

    The only problem with this is that the ISO-week always starts with a Monday. So even though in the demo above I have set Sunday to be the first day of the week, if you try selecting the date Wed 7th March 2012 you’ll see in the datapicker it shows as week 9, where the ISO-week will return 10. I left it in on purpose to show you this pitfall.

    Although this doesn’t provide a direct solution to your problem, hopefully it’ll help in determining if you should use DatePicker at all to produce your desired functionality.

    edit

    Actually, just found this question which might be of use to you, looks like it’s possible : Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?

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

Sidebar

Related Questions

Basically I need to create a textarea that is character limited, but will have
I need to create a function in JavaScript, that will write some text (which
How create a link_to_remote in a jQuery script where url need a parameter that
I need to create a container when a page loads that will be covering
I need to create a web application using ASP.NET MVC, jQuery and web standards
I need to position a div over an image with jQuery. I can create
Need to create a custom DNS name server using C which will check against
I have a rather interesting problem. I have a parent page that will create
I need to create 10 buttons dynamically with Jquery and set the text on
I am learning JQuery. I have a need to create a custom control. This

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.