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. UK/GB Dates

UK/GB Dates

Scheduled Pinned Locked Moved ASP.NET
questioncsharpsysadminhosting
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.
  • A Offline
    A Offline
    Aaron Hudson
    wrote on last edited by
    #1

    How can I truely get a date in the UK/GB format of dd/mm/yyy? It's a dedicated server and everything is in GMT format as far as I can see, but nothing will change it to UK/GB format. Any suggestions? I'd prefer to change a setting on the server than having an ASP .NET function, as it saves messing around. Thanks, Aaron

    D C 2 Replies Last reply
    0
    • A Aaron Hudson

      How can I truely get a date in the UK/GB format of dd/mm/yyy? It's a dedicated server and everything is in GMT format as far as I can see, but nothing will change it to UK/GB format. Any suggestions? I'd prefer to change a setting on the server than having an ASP .NET function, as it saves messing around. Thanks, Aaron

      D Offline
      D Offline
      Dr_X
      wrote on last edited by
      #2

      String.Format(yourDate, "dd/MM/yyyy") Michael

      I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

      G 1 Reply Last reply
      0
      • A Aaron Hudson

        How can I truely get a date in the UK/GB format of dd/mm/yyy? It's a dedicated server and everything is in GMT format as far as I can see, but nothing will change it to UK/GB format. Any suggestions? I'd prefer to change a setting on the server than having an ASP .NET function, as it saves messing around. Thanks, Aaron

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Your locale settings determine the default date format. Region and Language settings in the control panel is what you need.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        1 Reply Last reply
        0
        • D Dr_X

          String.Format(yourDate, "dd/MM/yyyy") Michael

          I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          -Dr_X- wrote:

          String.Format(yourDate, "dd/MM/yyyy")

          A slight correction: String.Format("{0:dd/MM/yyyy}", yourDate)

          --- single minded; short sighted; long gone;

          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