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

  • Home
  • SEARCH
  • 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 8702285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:36:54+00:00 2026-06-13T02:36:54+00:00

I want to filtering the date between two textbox, my problem is when I

  • 0

I want to filtering the date between two textbox, my problem is when I pick the date on the second box, it doesnt include the date that i choose.

the code for textbox

            <label for="from">From</label>

            <input type="text" id="from"  />

            <label for="to">To</label>

            <input type="text" id="to" /> 

for script the datepicker

         //function for datepicker and date range
     $(function() {
    $( "#from" ).datepicker({
        defaultDate: "+1w",
        changeMonth: true,
        numberOfMonths: 1,
        onSelect: function( selectedDate ) {
            $( "#to" ).datepicker( "option", "minDate", selectedDate );
        }
    });
    $( "#to" ).datepicker({
        defaultDate: "+1w",
        changeMonth: true,
        numberOfMonths: 1,
        onSelect: function( selectedDate ) {
            $( "#from" ).datepicker( "option", "maxDate", selectedDate  );
        }
    });
  });

updated

   $from = new Date(Date.parse($("#from").datepicker('getDate')));
   $to = new Date(Date.parse($("#to").datepicker('getDate')));

this is how it defined

  • 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-13T02:36:56+00:00Added an answer on June 13, 2026 at 2:36 am

    You should just access the value directly:

     if ($("#from").val()) {
    
         $filter.push({field: "DateEnrolled", operator: ">=", value: $("#from").val()});
     }
    
     if ($("#to").val()) {
         $filter.push({field: "DateEnrolled", operator: "<=", value: $("#to").val()});
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just finished some code that is successfully filtering deadlines that fall between
I have a xml and I want to sort it by date.my code till
I'm having problem filtering an NSScrollViews contents using it's date column. I have an
Basically I want to implement a filtering option for a Grid view and I
I want use groovy findAll with my param to filtering closure filterClosure = {
I want to manipulate a games roomlist, for filtering the maps. My idea was,
I have two IEnumerable collections that I would like to union. One selects news
I believe something is wrong with my coding. It's not filtering by date I
I have a Gridview with a column named Date, i want to put 2
I have two models (Event and UserProfile) in a ManyToMany relation. I want to

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.