Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. date query problem inplementation in vb.net

date query problem inplementation in vb.net

Scheduled Pinned Locked Moved Visual Basic
databasehelpcsharp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir/Madam, I am facing the date query problem .Actually , I am using the following query to get the records which are present in between two dates. select * from table where field between 12/12/2000 and 10/1/2001 * Field is the date type in the database. Please help. Thanks and Regards Pankaj

    C M 2 Replies Last reply
    0
    • A amaneet

      Sir/Madam, I am facing the date query problem .Actually , I am using the following query to get the records which are present in between two dates. select * from table where field between 12/12/2000 and 10/1/2001 * Field is the date type in the database. Please help. Thanks and Regards Pankaj

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      I don't understand what your problem is. What is it you are having a problem with? My only advise is that you should use ISO format dates because there are culture neutral.


      Upcoming events: * Glasgow Geek Dinner (5th March) * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

      1 Reply Last reply
      0
      • A amaneet

        Sir/Madam, I am facing the date query problem .Actually , I am using the following query to get the records which are present in between two dates. select * from table where field between 12/12/2000 and 10/1/2001 * Field is the date type in the database. Please help. Thanks and Regards Pankaj

        M Offline
        M Offline
        Mansourgh
        wrote on last edited by
        #3

        If I've correctly understood your question, I think you should use following structures: select * from table WHERE field >=#12/12/2000# And field <=#10/1/2001# or select * from table WHERE field Between #2000/12/12# And #2001/10/01#

        A 1 Reply Last reply
        0
        • M Mansourgh

          If I've correctly understood your question, I think you should use following structures: select * from table WHERE field >=#12/12/2000# And field <=#10/1/2001# or select * from table WHERE field Between #2000/12/12# And #2001/10/01#

          A Offline
          A Offline
          amaneet
          wrote on last edited by
          #4

          Thanks You Sir.Thanks for ur kind attention.problem is solved .Ur query is working. Can , I send the mail programically in vb.net (Window Application). If possible please send a sample code link. Thanks and Regards Pankaj

          B 1 Reply Last reply
          0
          • A amaneet

            Thanks You Sir.Thanks for ur kind attention.problem is solved .Ur query is working. Can , I send the mail programically in vb.net (Window Application). If possible please send a sample code link. Thanks and Regards Pankaj

            B Offline
            B Offline
            Bassam Saoud
            wrote on last edited by
            #5

            refering you to your post[^]

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups