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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:29:50+00:00 2026-06-11T09:29:50+00:00

I am working on a project in which i am using Jquery Datepicker to

  • 0

I am working on a project in which i am using Jquery Datepicker to select to and from date to filter records,

I have DateTime field in my Database table and on selecting date from datepicker i am doing ajax call,

the problem is arising is that in my database i have records with time(eg: 2009-08-08 13:12:23.143)
and from datepicker i am having record without time(ie 2009-08-08), I have converted it to DateTime but still i am having same record, Because of this difference my query returns null result, Can any one suggest how to handle this?
Regards

  • 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-11T09:29:52+00:00Added an answer on June 11, 2026 at 9:29 am

    Use only the date part of DateTime object (if you do not want to consider time) for filter… in your where clause of query, do like this

    where (@pDate is null  or CONVERT(VARCHAR(10), Date,111) between CONVERT(VARCHAR(10), @pStartDate,111) and CONVERT(VARCHAR(10), @pEndDate,111))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on using a project which uses jQuery, and I need to dynamically
I'm working on a project that is using jQuery, which I'm much more familiar
I am working on Project where I have JQuery 1-Page Horizontal scrolling website using
I'm working on a class project which is using a Kinect. According to the
I'm working with an OCR project which is developed using Visual C++ on .net
I'm working on a Spring MVC project in which I'm using Hibernate Validator to
I'm working on a plugin project in which I'm using Eclipse background processing. What's
I want to start using Bing for a project which will include working out
I am working on an android project and I am using a spinner which
Can anyone help me find an up-to-date, working ATL project which has a main

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.