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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:44:10+00:00 2026-06-07T08:44:10+00:00

I am receiving as a parameter a date, this date is in the format

  • 0

I am receiving as a parameter a date, this date is in the format 04/24/2012, so in sql i need to be able to do something like

SELECT * 
FROM MYTABLE 
WHERE OrderDate BETWEEN (04/24/2012 at 12 am (StartDate)) 
    AND (04/24/2012 at 11:59 pm (EndDate))

I have two parameters StartDate and EndDate

@StartDate nvarchar(50),
@EndDate nvarchar(50),

Sometimes StartDate and EndDate are not the same date so it could be 4/24/2012 – 4/27/2012, this is working fine… the problem is when they are doing the same day.

  • 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-07T08:44:11+00:00Added an answer on June 7, 2026 at 8:44 am

    Try using end date but doing

    orderdate >= @startdate and orderdate < Dateadd(d, 1, @enddate)
    

    This way includes all the time between startdate and enddate if they are on the same day. E.g. greater or equal to the start of the day but less than the start of the next day

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

Sidebar

Related Questions

I keep receiving this error... [2012-06-14 11:54:50,072: ERROR/MainProcess] Hard time limit (300s) exceeded for
Im receiving error C2082: redefinition of formal parameter 'rval' in this code while trying
I have a Controller which is receiving value as an output parameter from the
I'm receiving a c-string as a parameter from a function, but the argument I
This is the following code example from Twisted for dealing with receiving of multicasts.
I have a method that is receiving more than one parameter. The method signature
I am receiving this Uncaught TypeError on a new website I am creating, but
I am receiving a parse error which is this: Parse error: syntax error, unexpected
I am receiving shouldstartloadwithrequest event and I need to stop request for some conditions.
Why am I receiving this Rake error: $ rake --version /Volumes/Data/sampablokuper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not

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.