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. I just want the time to appear

I just want the time to appear

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabase
4 Posts 3 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.
  • Y Offline
    Y Offline
    yasso_115
    wrote on last edited by
    #1

    Hi all, I am using Sql Server 2005, ASP.Net and VB.net The problem is that, i am using the datetime data type for the CourseTime column in the Course table, but when i want to display the time using a Gridview the date "1/1/1900" appears by default and i don't want any date to appear. How to solve this. Thanks in advance for your help

    yasso

    S 1 Reply Last reply
    0
    • Y yasso_115

      Hi all, I am using Sql Server 2005, ASP.Net and VB.net The problem is that, i am using the datetime data type for the CourseTime column in the Course table, but when i want to display the time using a Gridview the date "1/1/1900" appears by default and i don't want any date to appear. How to solve this. Thanks in advance for your help

      yasso

      S Offline
      S Offline
      SimulationofSai
      wrote on last edited by
      #2

      Use convert(varchar(10), 'YOUR DATE COLUMN', 14) in the SP/SQL that populates the grid. SG

      Y 1 Reply Last reply
      0
      • S SimulationofSai

        Use convert(varchar(10), 'YOUR DATE COLUMN', 14) in the SP/SQL that populates the grid. SG

        Y Offline
        Y Offline
        yasso_115
        wrote on last edited by
        #3

        Thanks for your help but I didn't understand, what is SP/SQL and where to find it, please give me more details

        yasso

        E 1 Reply Last reply
        0
        • Y yasso_115

          Thanks for your help but I didn't understand, what is SP/SQL and where to find it, please give me more details

          yasso

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          those are store proc and SQL query language...you can look for more info from SQL book online << >>

          8x Solutions Ltd

          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