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. The Lounge
  3. Dates

Dates

Scheduled Pinned Locked Moved The Lounge
111 Posts 41 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.
  • S Simon P Stevens

    So today is 20th of October 2009. In UK format that is 20/10/2009. Kinda makes sense right, smallest to biggest. Logical. In US format it's 10/20/2009. Now to me that's totally illogical. Why would you do that. Can any Americans explain to me why this makes sense. (lets try to forget about patriotism). I don't understand why it would ever be useful to break the logical order. It's like writing the time in HH:SS:MM. [As a developer I obviously recognise that the superior format is neither of the above but is in fact YYYY-MM-DD as it maintains correct sort order and digit significance]

    Simon

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #59

    Simon, In the UK, for speed limits you still use mph, right? Or have you changed to kmph now?

    Regards, Nish


    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
    My latest book : C++/CLI in Action / Amazon.com link

    L 1 Reply Last reply
    0
    • C Chris Maunder

      You should try living in Canada where officially it's dd/mm/yy, but practically, because of that country next door, it's sometimes mm/dd/yy. Yet the locals never get confused! I, on the other hand, have no idea. None. And don't get me started about their "Best Before" dates on food. They only use 2 letters for months, so you can have 11JU09. Is that June or July? Are you feeling lucky, punk?

      cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

      M Offline
      M Offline
      Michael Schubert
      wrote on last edited by
      #60

      Chris Maunder wrote:

      They only use 2 letters for months, so you can have 11JU09

      That's incredible.

      1 Reply Last reply
      0
      • L Lost User

        A hat size in Texas.

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #61

        Only if you have a very small head! I have only previously heard of a 10 Gallon Hat.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        1 Reply Last reply
        0
        • S Simon P Stevens

          Interesting. I assume you are referring to the right-to-left writing of their language. I would expect a format entered in as yyyy-mm-dd would appear as "dd-mm-yyyy" in the RTL environment, and I would expect the sorting algorithm to adhere to the RTL option when considering digit significance, so I would expect it still to work correctly. Obviously I have no real idea what I am talking about so please ignore me.

          Simon

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #62

          I speak a little Arabic. Numbers in Arabic are written like ours left-to-right , even when "Arabic arabic" numerals are used and all the other writing is left to right. The effect when you read it inline is weird as you have to reverse direction whilst reading, like this: The value of PI 395141.3 to six decimal places.

          CCC solved so far: 2 (including a Hard One!)

          1 Reply Last reply
          0
          • N Nish Nishant

            Simon, In the UK, for speed limits you still use mph, right? Or have you changed to kmph now?

            Regards, Nish


            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
            My latest book : C++/CLI in Action / Amazon.com link

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #63

            Nishant Sivakumar wrote:

            In the UK, for speed limits you still use mph

            MPH obviously, why would we want to use some foreign measurement that nobody understands? ;)

            N 1 Reply Last reply
            0
            • L Lost User

              Nishant Sivakumar wrote:

              In the UK, for speed limits you still use mph

              MPH obviously, why would we want to use some foreign measurement that nobody understands? ;)

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #64

              Richard MacCutchan wrote:

              MPH obviously, why would we want to use some foreign measurement that nobody understands?

              :-) Wouldn't this same thought process apply to mm-dd-yyyy too? Everyone here understands it, so why change it!

              Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              My latest book : C++/CLI in Action / Amazon.com link

              L 1 Reply Last reply
              0
              • S Simon P Stevens

                So today is 20th of October 2009. In UK format that is 20/10/2009. Kinda makes sense right, smallest to biggest. Logical. In US format it's 10/20/2009. Now to me that's totally illogical. Why would you do that. Can any Americans explain to me why this makes sense. (lets try to forget about patriotism). I don't understand why it would ever be useful to break the logical order. It's like writing the time in HH:SS:MM. [As a developer I obviously recognise that the superior format is neither of the above but is in fact YYYY-MM-DD as it maintains correct sort order and digit significance]

                Simon

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #65

                Simon Stevens wrote:

                Can any Americans explain to me why this makes sense.

                Actually we do it just to screw with the Brits (and their imperial progeny). Seems to work too. ;P

                K N 2 Replies Last reply
                0
                • N Nish Nishant

                  Richard MacCutchan wrote:

                  MPH obviously, why would we want to use some foreign measurement that nobody understands?

                  :-) Wouldn't this same thought process apply to mm-dd-yyyy too? Everyone here understands it, so why change it!

                  Regards, Nish


                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                  My latest book : C++/CLI in Action / Amazon.com link

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #66

                  Nishant Sivakumar wrote:

                  Wouldn't this same thought process apply to mm-dd-yyyy too? Everyone here understands it, so why change it!

                  :confused: we use dd/mm/yyyy in the UK.

                  N 1 Reply Last reply
                  0
                  • R R Giskard Reventlov

                    If memory serves the US Navy uses dd-mm-yyyy (I will happily sit corrected).

                    me, me, me

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #67

                    The one navy format I'm familiar with makes all the other formats we've been arguing about seem brilliant. DDHHMMZ MMM YY which turns this 7/5/2005 9:20:22 AM into this 050920Z JUL 05 :omg: :wtf: crappy cite but I don't feel like finding a nicer one.[^]

                    The latest nation. Procrastination.

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      You should try living in Canada where officially it's dd/mm/yy, but practically, because of that country next door, it's sometimes mm/dd/yy. Yet the locals never get confused! I, on the other hand, have no idea. None. And don't get me started about their "Best Before" dates on food. They only use 2 letters for months, so you can have 11JU09. Is that June or July? Are you feeling lucky, punk?

                      cheers, Chris Maunder The Code Project Co-founder Microsoft C++ MVP

                      C Offline
                      C Offline
                      Chris Meech
                      wrote on last edited by
                      #68

                      We only put "Best Before Dates" on food products for foreigners. And the dates are the result of a random number generator anyway, so why even bother with reading them, let alone to consider them to have some practical meaning. There's nothing like sour cream that you bought six months ago piled high on a baked potato. :)

                      Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

                      1 Reply Last reply
                      0
                      • L Lost User

                        Nishant Sivakumar wrote:

                        Wouldn't this same thought process apply to mm-dd-yyyy too? Everyone here understands it, so why change it!

                        :confused: we use dd/mm/yyyy in the UK.

                        N Offline
                        N Offline
                        Nish Nishant
                        wrote on last edited by
                        #69

                        Richard MacCutchan wrote:

                        we use dd/mm/yyyy in the UK.

                        I know, and the OP was asking my Americans use MM-DD-YYYY. The reason is same as why you guys use MPH :-) Clearly KMPH is superior to MPH, but you use a system you are familiar with. And while dd-mm-yyyy is a tad better than mm-dd-yyyy, yyyy-mm-dd is clearly superior to both - yet both in the UK and US, people use formats they are familiar with. What do you guys use for temperature? F or C?

                        Regards, Nish


                        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                        My latest book : C++/CLI in Action / Amazon.com link

                        K L 3 Replies Last reply
                        0
                        • L Lost User

                          Simon Stevens wrote:

                          Can any Americans explain to me why this makes sense.

                          Actually we do it just to screw with the Brits (and their imperial progeny). Seems to work too. ;P

                          K Offline
                          K Offline
                          Keith Barrow
                          wrote on last edited by
                          #70

                          Mike Mullikin wrote:

                          imperial progeny

                          I suggest you read your own history, figure out who you were trying to gain Independance from in the War of Independance (which by the way, at the time was considered a civil war) and then realise why you are all speaking English. Bl**dy colonials :-)

                          CCC solved so far: 2 (including a Hard One!)

                          N L W 3 Replies Last reply
                          0
                          • L Lost User

                            Simon Stevens wrote:

                            Can any Americans explain to me why this makes sense.

                            Actually we do it just to screw with the Brits (and their imperial progeny). Seems to work too. ;P

                            N Offline
                            N Offline
                            Nish Nishant
                            wrote on last edited by
                            #71

                            Mike Mullikin wrote:

                            Actually we do it just to screw with the Brits (and their imperial progeny). Seems to work too.

                            It also contributes to the welfare of the programming community. Now developers around the world can bill 2 man days to write a complex British-to-American date converter framework, including full suppport for leap years! :rolleyes:

                            Regards, Nish


                            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                            My latest book : C++/CLI in Action / Amazon.com link

                            1 Reply Last reply
                            0
                            • N Nish Nishant

                              Richard MacCutchan wrote:

                              we use dd/mm/yyyy in the UK.

                              I know, and the OP was asking my Americans use MM-DD-YYYY. The reason is same as why you guys use MPH :-) Clearly KMPH is superior to MPH, but you use a system you are familiar with. And while dd-mm-yyyy is a tad better than mm-dd-yyyy, yyyy-mm-dd is clearly superior to both - yet both in the UK and US, people use formats they are familiar with. What do you guys use for temperature? F or C?

                              Regards, Nish


                              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                              My latest book : C++/CLI in Action / Amazon.com link

                              K Offline
                              K Offline
                              Keith Barrow
                              wrote on last edited by
                              #72

                              I'm still struggling from the changes in gradient signs. A gradient of 1 in 7 is easy to visualise, but 14% ? I blame the French, but then I'm English.

                              CCC solved so far: 2 (including a Hard One!)

                              L 1 Reply Last reply
                              0
                              • K Keith Barrow

                                Mike Mullikin wrote:

                                imperial progeny

                                I suggest you read your own history, figure out who you were trying to gain Independance from in the War of Independance (which by the way, at the time was considered a civil war) and then realise why you are all speaking English. Bl**dy colonials :-)

                                CCC solved so far: 2 (including a Hard One!)

                                N Offline
                                N Offline
                                Nish Nishant
                                wrote on last edited by
                                #73

                                keefb wrote:

                                and then realise why you are all speaking English.

                                Not every day that someone from the UK acknowledges that the language spoken here is "English" :-)

                                Regards, Nish


                                Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                My latest book : C++/CLI in Action / Amazon.com link

                                K 1 Reply Last reply
                                0
                                • N Nish Nishant

                                  Richard MacCutchan wrote:

                                  we use dd/mm/yyyy in the UK.

                                  I know, and the OP was asking my Americans use MM-DD-YYYY. The reason is same as why you guys use MPH :-) Clearly KMPH is superior to MPH, but you use a system you are familiar with. And while dd-mm-yyyy is a tad better than mm-dd-yyyy, yyyy-mm-dd is clearly superior to both - yet both in the UK and US, people use formats they are familiar with. What do you guys use for temperature? F or C?

                                  Regards, Nish


                                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                  My latest book : C++/CLI in Action / Amazon.com link

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #74

                                  Nishant Sivakumar wrote:

                                  Clearly KMPH is superior to MPH

                                  No, it's just a different unit of measurement.

                                  Nishant Sivakumar wrote:

                                  What do you guys use for temperature? F or C?

                                  Mostly Celsius these days, although weathermen/women often quote the equivalent Fahrenheit figure as well.

                                  1 Reply Last reply
                                  0
                                  • K Keith Barrow

                                    I'm still struggling from the changes in gradient signs. A gradient of 1 in 7 is easy to visualise, but 14% ? I blame the French, but then I'm English.

                                    CCC solved so far: 2 (including a Hard One!)

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #75

                                    keefb wrote:

                                    I blame the French, but then I'm English.

                                    Actually, I think it was Ted Heath rather than the French.

                                    1 Reply Last reply
                                    0
                                    • N Nish Nishant

                                      keefb wrote:

                                      and then realise why you are all speaking English.

                                      Not every day that someone from the UK acknowledges that the language spoken here is "English" :-)

                                      Regards, Nish


                                      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                      My latest book : C++/CLI in Action / Amazon.com link

                                      K Offline
                                      K Offline
                                      Keith Barrow
                                      wrote on last edited by
                                      #76

                                      Actually, I meant the Americans, rather than posters on CP. The English use "Bl**dy Colonials" to refer to Americans, especially when we are shocked/appalled/dismayed/joking about the antics/attitiudes of our cousins from across the pond.

                                      CCC solved so far: 2 (including a Hard One!)

                                      1 Reply Last reply
                                      0
                                      • N Nish Nishant

                                        Richard MacCutchan wrote:

                                        we use dd/mm/yyyy in the UK.

                                        I know, and the OP was asking my Americans use MM-DD-YYYY. The reason is same as why you guys use MPH :-) Clearly KMPH is superior to MPH, but you use a system you are familiar with. And while dd-mm-yyyy is a tad better than mm-dd-yyyy, yyyy-mm-dd is clearly superior to both - yet both in the UK and US, people use formats they are familiar with. What do you guys use for temperature? F or C?

                                        Regards, Nish


                                        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                        My latest book : C++/CLI in Action / Amazon.com link

                                        K Offline
                                        K Offline
                                        Keith Barrow
                                        wrote on last edited by
                                        #77

                                        Kelvin.

                                        CCC solved so far: 2 (including a Hard One!)

                                        1 Reply Last reply
                                        0
                                        • S Simon P Stevens

                                          So today is 20th of October 2009. In UK format that is 20/10/2009. Kinda makes sense right, smallest to biggest. Logical. In US format it's 10/20/2009. Now to me that's totally illogical. Why would you do that. Can any Americans explain to me why this makes sense. (lets try to forget about patriotism). I don't understand why it would ever be useful to break the logical order. It's like writing the time in HH:SS:MM. [As a developer I obviously recognise that the superior format is neither of the above but is in fact YYYY-MM-DD as it maintains correct sort order and digit significance]

                                          Simon

                                          R Offline
                                          R Offline
                                          Richard Jones
                                          wrote on last edited by
                                          #78

                                          I agree their reasoning is the way it's spoken (by them). However, for clarity, YYYY-MM-DD sould always be used in applications. 1) no confusion. 2) ease of sorting by date. 3) would have prevented that !@#$% SQL Query "rewrite the query with wrong date format" bug.

                                          "The activity of 'debugging', or removing bugs from a program, ends when people get tired of doing it, not when the bugs are removed." - "Datamation", January 15, 1984

                                          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