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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:42:02+00:00 2026-05-30T03:42:02+00:00

I have a DatePicker in ExtJS4. I only want to allow TWO dates for

  • 0

I have a DatePicker in ExtJS4. I only want to allow TWO dates for each month. The 15th and last day (30/31/28/29 depending on month/year)

How can I disable every day in the picker but allow those two dates?

  • 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-30T03:42:04+00:00Added an answer on May 30, 2026 at 3:42 am

    See disabledDates config option for Ext.form.field.Date

    From API docs:

    disabledDates : String[] An array of “dates” to disable, as strings.
    These strings will be used to build a dynamic regular expression so
    they are very powerful. Some examples:

    // disable these exact dates:
    disabledDates: ["03/08/2003", "09/16/2003"]
    // disable these days for every year:
    disabledDates: ["03/08", "09/16"]
    // only match the beginning (useful if you are using short years):
    disabledDates: ["^03/08"]
    // disable every day in March 2006:
    disabledDates: ["03/../2006"]
    // disable every day in every March:
    disabledDates: ["^03"]
    

    Note that the format of the dates included in the array should exactly
    match the format config. In order to support regular expressions, if
    you are using a date format that has “.” in it, you will have to
    escape the dot when restricting dates. For example: [“03\.08\.03”].

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

Sidebar

Related Questions

I have a datepicker where I show two months and I want to randomly
I currently have a datepicker with month and year change set to true... but
I have a jQuery datepicker that I want to restrict non work days -
I have the datepicker component in the format of MM/dd/yyyy , But I want
I have a DatePicker for which I want to set the BorderBrush to SolidColorBrush(Colors.Red)
I have the following code: $(document).ready(function(){ $(.datepicker).each(function() { $(this).datepicker({ beforeShowDay: function(date){ return [$(this).parent().find(span.days).html(), ]
Let's say I have a datePicker called foobar: <g:datePicker name=foobar value=${new Date()} precision=day />
i have create dynamic datepicker inside gridview. i want to know how to get
I want to have the JQuery Datepicker open when the user clicks on an
I have a datepicker for the field From and To and I want the

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.