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. need date format in "dd/mm/yyyy hh:mm" [modified]

need date format in "dd/mm/yyyy hh:mm" [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
6 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.
  • K Offline
    K Offline
    Karan_TN
    wrote on last edited by
    #1

    hi. currently i m using asp.net 2.0... i need the date format in gridview as "dd/mm/yyyy hh:mm" Note : i dont need seconds. time should be in 24hours format help me plz

    modified on Thursday, February 18, 2010 7:27 AM

    S F 2 Replies Last reply
    0
    • K Karan_TN

      hi. currently i m using asp.net 2.0... i need the date format in gridview as "dd/mm/yyyy hh:mm" Note : i dont need seconds. time should be in 24hours format help me plz

      modified on Thursday, February 18, 2010 7:27 AM

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

      AFAIK there is no support for tht format so , convert the date time format into string and do string manipulation..!

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      K 1 Reply Last reply
      0
      • S sashidhar

        AFAIK there is no support for tht format so , convert the date time format into string and do string manipulation..!

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        K Offline
        K Offline
        Karan_TN
        wrote on last edited by
        #3

        oh.. :( want to inform to MICROSOFT? anyway, thanks for reply pal.

        1 Reply Last reply
        0
        • K Karan_TN

          hi. currently i m using asp.net 2.0... i need the date format in gridview as "dd/mm/yyyy hh:mm" Note : i dont need seconds. time should be in 24hours format help me plz

          modified on Thursday, February 18, 2010 7:27 AM

          F Offline
          F Offline
          farogh haider
          wrote on last edited by
          #4

          hi, Use DataFormatString property in gridview

          Farogh Haider Web developer

          K 1 Reply Last reply
          0
          • F farogh haider

            hi, Use DataFormatString property in gridview

            Farogh Haider Web developer

            K Offline
            K Offline
            Karan_TN
            wrote on last edited by
            #5

            i have applied all types of DataFormatString property in gridview. but i cant get what i expect. help me plz

            T 1 Reply Last reply
            0
            • K Karan_TN

              i have applied all types of DataFormatString property in gridview. but i cant get what i expect. help me plz

              T Offline
              T Offline
              The Man from U N C L E
              wrote on last edited by
              #6

              Your format should be dd/MM/yyyy HH:mm Check out MSDN[^] for more details on the format strings available.

              If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

              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