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. System.DateTime to Short time

System.DateTime to Short time

Scheduled Pinned Locked Moved ASP.NET
question
2 Posts 2 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.
  • D Offline
    D Offline
    Dhruvil
    wrote on last edited by
    #1

    Hi All, I have a DATE data column in dataset, which gives me date and time both values. i want only date part of that column to display in table. is there any way i can convert it to only date format? Thanks, Niki

    M 1 Reply Last reply
    0
    • D Dhruvil

      Hi All, I have a DATE data column in dataset, which gives me date and time both values. i want only date part of that column to display in table. is there any way i can convert it to only date format? Thanks, Niki

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You can quickly see the DateTime members[^] providing you with a couple of ways to get the date value only. Also when binding the Date column to the table, you can specify the formatting pattern to get the date, you can read more about this in msdn[^].

      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