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. 21-12-2012

21-12-2012

Scheduled Pinned Locked Moved The Lounge
question
20 Posts 10 Posters 1 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.
  • L Lost User

    Just thought I would post this thing with the date shown in the correct format. Take note North Americans DD-MM-YYYY. Thanks for your interest. P.S. This date means something special to someone somewhere cause it keeps popping up here in The Lounge. To me it's just my Mother In-Laws 65th birthday and 4 days before Christmas. Who cares?

    Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

    E Offline
    E Offline
    El Corazon
    wrote on last edited by
    #2

    Michael Martin wrote:

    with the date shown in the correct format

    or 2012-12-21 which has been settled on for Joint Tactical operations (multi-national, not just North America). ;P

    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

    L J 2 Replies Last reply
    0
    • E El Corazon

      Michael Martin wrote:

      with the date shown in the correct format

      or 2012-12-21 which has been settled on for Joint Tactical operations (multi-national, not just North America). ;P

      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

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

      El Corazon wrote:

      or 2012-12-21 which has been settled on for Joint Tactical operations (multi-national, not just North America). ;P

      I was originally going to go with that format but didn't want to get called for programming techniques in a Lounge post.

      Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

      E 1 Reply Last reply
      0
      • E El Corazon

        Michael Martin wrote:

        with the date shown in the correct format

        or 2012-12-21 which has been settled on for Joint Tactical operations (multi-national, not just North America). ;P

        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

        J Offline
        J Offline
        Jan Steyn
        wrote on last edited by
        #4

        yyyy/MM/dd also happens to be ISO standard 8061:rolleyes:

        1 Reply Last reply
        0
        • L Lost User

          Just thought I would post this thing with the date shown in the correct format. Take note North Americans DD-MM-YYYY. Thanks for your interest. P.S. This date means something special to someone somewhere cause it keeps popping up here in The Lounge. To me it's just my Mother In-Laws 65th birthday and 4 days before Christmas. Who cares?

          Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

          T Offline
          T Offline
          Tim Carmichael
          wrote on last edited by
          #5

          Michael Martin wrote:

          Take note North Americans

          Being from Canada, and hence, North America... this is the format I was taught to use and still usually use.

          L 1 Reply Last reply
          0
          • T Tim Carmichael

            Michael Martin wrote:

            Take note North Americans

            Being from Canada, and hence, North America... this is the format I was taught to use and still usually use.

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

            Tim Carmichael wrote:

            Being from Canada, and hence, North America... this is the format I was taught to use and still usually use.

            Crap, there goes my lump everyone into the same boat idea, just blew up in my face. I had no idea what format was used where but thought I would alienate even more people in one go than just picking on the Yanks. Wonder how many 1 votes I can generate with this post?

            Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

            1 Reply Last reply
            0
            • L Lost User

              Just thought I would post this thing with the date shown in the correct format. Take note North Americans DD-MM-YYYY. Thanks for your interest. P.S. This date means something special to someone somewhere cause it keeps popping up here in The Lounge. To me it's just my Mother In-Laws 65th birthday and 4 days before Christmas. Who cares?

              Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

              D Offline
              D Offline
              Dario Solera
              wrote on last edited by
              #7

              Michael Martin wrote:

              DD-MM-YYYY

              In Italy we use that format. I also like YYYY-MM-DD especially in "international" contexts. I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid. :~

              If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki

              D J 2 Replies Last reply
              0
              • L Lost User

                Just thought I would post this thing with the date shown in the correct format. Take note North Americans DD-MM-YYYY. Thanks for your interest. P.S. This date means something special to someone somewhere cause it keeps popping up here in The Lounge. To me it's just my Mother In-Laws 65th birthday and 4 days before Christmas. Who cares?

                Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                M Offline
                M Offline
                Matthew Faithfull
                wrote on last edited by
                #8

                I must have missed that post. Is it the date when the Mayan calendar runs out or just a number with lots of 1s and 2s in it?

                Nothing is exactly what it seems but everything with seems can be unpicked.

                L 1 Reply Last reply
                0
                • M Matthew Faithfull

                  I must have missed that post. Is it the date when the Mayan calendar runs out or just a number with lots of 1s and 2s in it?

                  Nothing is exactly what it seems but everything with seems can be unpicked.

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

                  Matthew Faithfull wrote:

                  Is it the date when the Mayan calendar runs out or just a number with lots of 1s and 2s in it?

                  I think Mayan was the tribe being bandied about in earlier reposts. Not really sure, didn't pay much attention.

                  Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                  1 Reply Last reply
                  0
                  • D Dario Solera

                    Michael Martin wrote:

                    DD-MM-YYYY

                    In Italy we use that format. I also like YYYY-MM-DD especially in "international" contexts. I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid. :~

                    If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki

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

                    Dario Solera wrote:

                    I also like YYYY-MM-DD especially in "international" contexts.

                    Likewise. Any varient that uses a 3 letter month abrev also works to disambiguate.

                    Dario Solera wrote:

                    I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid.

                    Because we Americans have always said "august twelfth" not "twelve august". Always is defined as 'long enough ago that noone knows why we do it that way and you do it the other way'.

                    -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

                    Q E 2 Replies Last reply
                    0
                    • D Dan Neely

                      Dario Solera wrote:

                      I also like YYYY-MM-DD especially in "international" contexts.

                      Likewise. Any varient that uses a 3 letter month abrev also works to disambiguate.

                      Dario Solera wrote:

                      I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid.

                      Because we Americans have always said "august twelfth" not "twelve august". Always is defined as 'long enough ago that noone knows why we do it that way and you do it the other way'.

                      -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

                      Q Offline
                      Q Offline
                      QuiJohn
                      wrote on last edited by
                      #11

                      dan neely wrote:

                      Because we Americans have always said "august twelfth" not "twelve august". Always is defined as 'long enough ago that noone knows why we do it that way and you do it the other way'.

                      It goes back far enough that there was no "sort" button in excel, so it really didn't matter. But oh how we rue that decision now.


                      Faith is a fine invention For gentlemen who see; But microscopes are prudent In an emergency! -Emily Dickinson

                      1 Reply Last reply
                      0
                      • L Lost User

                        El Corazon wrote:

                        or 2012-12-21 which has been settled on for Joint Tactical operations (multi-national, not just North America). ;P

                        I was originally going to go with that format but didn't want to get called for programming techniques in a Lounge post.

                        Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                        E Offline
                        E Offline
                        El Corazon
                        wrote on last edited by
                        #12

                        Michael Martin wrote:

                        didn't want to get called for programming techniques in a Lounge post.

                        you planning to pseudocode date sorts just because the date exists? I'm geeky, but not that geeky.... would you use a heap-sort, shell-sort, or bubble-sort? shuffle-sort? merge-sort? or stick with the old-faithful quicksort? ;P but would you remove recursion from it?

                        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                        L 1 Reply Last reply
                        0
                        • L Lost User

                          Just thought I would post this thing with the date shown in the correct format. Take note North Americans DD-MM-YYYY. Thanks for your interest. P.S. This date means something special to someone somewhere cause it keeps popping up here in The Lounge. To me it's just my Mother In-Laws 65th birthday and 4 days before Christmas. Who cares?

                          Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                          R Offline
                          R Offline
                          Rob Graham
                          wrote on last edited by
                          #13

                          Even a dumb Aussie should know that there aren't 21 months.;P

                          L 1 Reply Last reply
                          0
                          • D Dan Neely

                            Dario Solera wrote:

                            I also like YYYY-MM-DD especially in "international" contexts.

                            Likewise. Any varient that uses a 3 letter month abrev also works to disambiguate.

                            Dario Solera wrote:

                            I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid.

                            Because we Americans have always said "august twelfth" not "twelve august". Always is defined as 'long enough ago that noone knows why we do it that way and you do it the other way'.

                            -- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer

                            E Offline
                            E Offline
                            El Corazon
                            wrote on last edited by
                            #14

                            dan neely wrote:

                            Always is defined as 'long enough ago that noone knows why we do it that way and you do it the other way'.

                            edited for the lounge: “Put five apes in a cage. In the middle of a cage is a set of steps, and at the top of the steps is a banana hanging from the top of the cage. When the first ape starts up the steps, blast all five apes with ice cold water from a firehose for five minutes. When the next ape starts up the steps, do it again. Then put the firehose away. “The third time an ape starts up the steps, wait. The other apes will beat the ape. Now take one of the apes out, put in a new ape. He’ll start up the steps - and the other apes will promptly beat him. Replace another ape - and the other four - including the ape who never got hit with the water - will beat him to a pulp. Repeat the process, one by one, until you have five ‘new’ apes in the cage. “They’ll never let one of the apes up the steps. And if you were to ask why, the answer would be simple: “Because that’s the way it’s always been done.” ;P

                            _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                            1 Reply Last reply
                            0
                            • E El Corazon

                              Michael Martin wrote:

                              didn't want to get called for programming techniques in a Lounge post.

                              you planning to pseudocode date sorts just because the date exists? I'm geeky, but not that geeky.... would you use a heap-sort, shell-sort, or bubble-sort? shuffle-sort? merge-sort? or stick with the old-faithful quicksort? ;P but would you remove recursion from it?

                              _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

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

                              ...using Bundaberg Rum, extremely quick, or maybe that's makes things seem to go really quick. I can't remember.

                              Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                              E 1 Reply Last reply
                              0
                              • R Rob Graham

                                Even a dumb Aussie should know that there aren't 21 months.;P

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

                                Rob Graham wrote:

                                Even a dumb Aussie should know that there aren't 21 months. ;P

                                I do know that, so why do you insist in putting 21 in the month part of the date?

                                Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                                1 Reply Last reply
                                0
                                • L Lost User

                                  ...using Bundaberg Rum, extremely quick, or maybe that's makes things seem to go really quick. I can't remember.

                                  Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash 24/04/2004

                                  E Offline
                                  E Offline
                                  El Corazon
                                  wrote on last edited by
                                  #17

                                  Michael Martin wrote:

                                  using Bundaberg Rum

                                  for some strange reason a song popped into my head.... what do you do with a drunken sailor?[^]

                                  _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                  1 Reply Last reply
                                  0
                                  • D Dario Solera

                                    Michael Martin wrote:

                                    DD-MM-YYYY

                                    In Italy we use that format. I also like YYYY-MM-DD especially in "international" contexts. I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid. :~

                                    If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Blog - My Photos - ScrewTurn Wiki

                                    J Offline
                                    J Offline
                                    Justin Jones 0
                                    wrote on last edited by
                                    #18

                                    Dario Solera wrote:

                                    I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid.

                                    And most 'Mericans could say the very same about DD-MM-YYYY. Why? That's what they're used to, and your format makes sense to you because that's what you're used to. Can you give me one reason why DD-MM-YYYY is better than MM-DD-YYYY? (Hint: "because it makes sense to me" is not a valid answer) The only format that I can give a valid reason for preferring is YYYY-MM-DD. Why? Because it sorts. J Make the logo bigger!

                                    E 1 Reply Last reply
                                    0
                                    • J Justin Jones 0

                                      Dario Solera wrote:

                                      I don't understand, though, how MM-DD-YYYY can actually exist. It's just plain stupid.

                                      And most 'Mericans could say the very same about DD-MM-YYYY. Why? That's what they're used to, and your format makes sense to you because that's what you're used to. Can you give me one reason why DD-MM-YYYY is better than MM-DD-YYYY? (Hint: "because it makes sense to me" is not a valid answer) The only format that I can give a valid reason for preferring is YYYY-MM-DD. Why? Because it sorts. J Make the logo bigger!

                                      E Offline
                                      E Offline
                                      El Corazon
                                      wrote on last edited by
                                      #19

                                      justinjones wrote:

                                      Can you give me one reason why DD-MM-YYYY is better than MM-DD-YYYY?

                                      The most important figure goes first. Generally most people aren't looking at what year it is (mostly) they are interested in natural comparison of dates, they are interested in days first, then months, then years. YYYY-MM-DD is a sortable structure, DD-MM-YYYY is a natural date comparison with most important objects (days) first. I've used all of the above and regularly switch between them, because everyone has a preference, everyone wants it aimed at their preference. When you do date subtraction on 2007-08-22 and 2007-08-20 you get: 0 years, 0 months, 2 days. When reversed, with most important information first, you end up with 2 days, 0 months, 0 years a very natural comparison/difference model. When you order it as the USA does it you get 0 months, 2 days, 0 years, a very odd way to compare/diff dates. All in all both YYYY-MM-DD and DD-MM-YYYY have deliberate reasons for their usage, MM-DD-YYYY is just there out of habit.

                                      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                      J 1 Reply Last reply
                                      0
                                      • E El Corazon

                                        justinjones wrote:

                                        Can you give me one reason why DD-MM-YYYY is better than MM-DD-YYYY?

                                        The most important figure goes first. Generally most people aren't looking at what year it is (mostly) they are interested in natural comparison of dates, they are interested in days first, then months, then years. YYYY-MM-DD is a sortable structure, DD-MM-YYYY is a natural date comparison with most important objects (days) first. I've used all of the above and regularly switch between them, because everyone has a preference, everyone wants it aimed at their preference. When you do date subtraction on 2007-08-22 and 2007-08-20 you get: 0 years, 0 months, 2 days. When reversed, with most important information first, you end up with 2 days, 0 months, 0 years a very natural comparison/difference model. When you order it as the USA does it you get 0 months, 2 days, 0 years, a very odd way to compare/diff dates. All in all both YYYY-MM-DD and DD-MM-YYYY have deliberate reasons for their usage, MM-DD-YYYY is just there out of habit.

                                        _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                        J Offline
                                        J Offline
                                        Justin Jones 0
                                        wrote on last edited by
                                        #20

                                        El Corazon wrote:

                                        The most important figure goes first.

                                        If your data only spans a single month. MM-DD-YYYY suffers from the same limitation, except it's usefulness is limited to a single year. Take the following example: DD-MM-YYYY 01-01-2006 01-01-2007 01-02-2006 01-02-2007 01-03-2006 ... and MM-DD-YYYY 01-01-2006 01-01-2007 01-02-2006 01-02-2007 ... Neither are very useful, in my opinion, because neither represent an accurate date sort. YYYY-MM-DD will always sort correctly. However, like you, I have nothing better to offer than my opinion.

                                        El Corazon wrote:

                                        When you do date subtraction on 2007-08-22 and 2007-08-20 you get: 0 years, 0 months, 2 days. When reversed, with most important information first, you end up with 2 days, 0 months, 0 years a very natural comparison/difference model. When you order it as the USA does it you get 0 months, 2 days, 0 years, a very odd way to compare/diff dates.

                                        What's "natural" and "odd" is simply a matter of opinion. It really is nothing more than cultural differences. What you consider odd is perfectly normal to a large portion of the world's population. By the same token what you consider normal is odd to that same segment. Why is year not the most important information, being of the highest order of magnitude, with month being the second highest and day being the lowest order? To me that seems more natural.

                                        J Make the logo bigger

                                        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