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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. 0:12 to 0:24 format

0:12 to 0:24 format

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • K Offline
    K Offline
    Krazy Programmer
    wrote on last edited by
    #1

    Hi i want to change the date time format form 0-12 to 0-24 I want to do it programatically , Please help me in this thanks and Regards Sindhu Tiwari * I dont want to change regional settings *

    If You win You need not Explain............ But If You Loose You Should not be there to Explain......

    A B 2 Replies Last reply
    0
    • K Krazy Programmer

      Hi i want to change the date time format form 0-12 to 0-24 I want to do it programatically , Please help me in this thanks and Regards Sindhu Tiwari * I dont want to change regional settings *

      If You win You need not Explain............ But If You Loose You Should not be there to Explain......

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Just set a format when you display it.

      Bob Ashfield Consultants Ltd

      K 1 Reply Last reply
      0
      • A Ashfield

        Just set a format when you display it.

        Bob Ashfield Consultants Ltd

        K Offline
        K Offline
        Krazy Programmer
        wrote on last edited by
        #3

        I got the solution it is Datetime dt = Datetime.Now() string st = dt.TimeOfDay.ToString(); Here i get time in 0:24 format .. Thanks sindhu tiwari (no longer a dot net programmer : Now an iphone app developer)

        If You win You need not Explain............ But If You Loose You Should not be there to Explain......

        1 Reply Last reply
        0
        • K Krazy Programmer

          Hi i want to change the date time format form 0-12 to 0-24 I want to do it programatically , Please help me in this thanks and Regards Sindhu Tiwari * I dont want to change regional settings *

          If You win You need not Explain............ But If You Loose You Should not be there to Explain......

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          string formatTimeValue = DateTime.Now.ToString("HH:mm:ss");


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my 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