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. Web Development
  3. ASP.NET
  4. Select distinct date?

Select distinct date?

Scheduled Pinned Locked Moved ASP.NET
questiondatabase
4 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.
  • B Offline
    B Offline
    blurMember
    wrote on last edited by
    #1

    I hope I am in the right forum. My data type column from the table ClockIn_Date is DateTime. The dropdownlist seems to select distinct date+time. I want to only select distinct the date and not inclusive of the time. What is the correct sql statement? SELECT DISTINCT ClockIn_Date FROM dbo.Stud_ClockIn

    thanks in advance. Much appreciated.

    S 1 Reply Last reply
    0
    • B blurMember

      I hope I am in the right forum. My data type column from the table ClockIn_Date is DateTime. The dropdownlist seems to select distinct date+time. I want to only select distinct the date and not inclusive of the time. What is the correct sql statement? SELECT DISTINCT ClockIn_Date FROM dbo.Stud_ClockIn

      thanks in advance. Much appreciated.

      S Offline
      S Offline
      Sebastian T Xavier
      wrote on last edited by
      #2

      try this select distinct convert(char(10),clockin_date,101) from dbo.Stud_ClockIn and do reply

      M 1 Reply Last reply
      0
      • S Sebastian T Xavier

        try this select distinct convert(char(10),clockin_date,101) from dbo.Stud_ClockIn and do reply

        M Offline
        M Offline
        Muhammad Chitrali
        wrote on last edited by
        #3

        It's not working...

        _ 1 Reply Last reply
        0
        • M Muhammad Chitrali

          It's not working...

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          Its working fine.. What exactly are you using?

          Best Regards, Apurva Kaushal

          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