View Poll Results: The 2nd day of March 2004. Choose as many as you like.

Voters
31. You may not vote on this poll
  • 2004-03-02

    12 38.71%
  • 03/02/2004

    10 32.26%
  • 02.03.2004

    11 35.48%
  • 2004-Mar-02

    3 9.68%
  • Mar/02/2004

    5 16.13%
  • 02.Mar.2004

    9 29.03%
  • Other, please specify.

    8 25.81%
Multiple Choice Poll.

What is Your Preferred Date Format?

This is a discussion on What is Your Preferred Date Format? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What is your preference for the formatting of a date? For example, the 2nd day of March 2004: 2004-03-02 2004/03/02 ...

  1. #1
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006

    What is Your Preferred Date Format?

    What is your preference for the formatting of a date?

    For example, the 2nd day of March 2004:
    • 2004-03-02
    • 2004/03/02
    • 2004.03.02
    • 03-02-2004
    • 03/02/2004
    • 03.02.2004
    • 02-03-2004
    • 02/03/2004
    • 02.03.2004
    • 2004-Mar-02
    • 2004/Mar/02
    • 2004.Mar.02
    • Mar-02-2004
    • Mar/02/2004
    • Mar.02.2004
    • 02-Mar-2004
    • 02/Mar/2004
    • 02.Mar.2004
    Also, if you would be so kind, consider adding any relevant inclusion of your
    1. Current and/or previous location(s) as they may have influenced this preference.
    2. Whether or not government and/or military service played any part.
    3. Preferred separator character(s).
    Keep in mind that I already know that preferences and standards vary around the world in innumerable (it would seem) ways.

    I'm just trying to get a general feel for a "top 3" type of thing.

    Thank you for your participation and contributions.

    [With a poll limit of 15 options, I couldn't put the original 18 options on the poll so I did some trimming to provide general representations of the basic options. And I made the poll public in case you want to be lazy and not reply but let me "track down" your location if I can -- that can be changed if y'all wish.]
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    I don't know why. I just do it that way
    Woop?

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    It's such a trivial thing. You need the "I don't care" option in the poll.
    My computer is awesome.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,328
    I prefer day-month-year (I don't care what the separator is), but because month-day-year is the standard where I am (the US) I do it that way.

  5. #5
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,714
    I usually just write the full date - month first, date second, simply because of where I am - unless I'm going to run out of room (when writing a check or filling out some form), in which case, I use one of the options with dot separators. I stopped using slashes cause I tend to write them too small. Again though, I like writing out the date.


    You've been asking a lot of questions about the time lately. If you don't mind my asking, does this have anything to do with your new time library?

  6. #6
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    I dunno, one of these three.

    A nice dinner.Talking over several glasses of wine.Large amounts of sex
    A nice dinner/Talking over several glasses of wine/Large amounts of sex
    A nice dinner-Talking over several glasses of wine-Large amounts of sex

    I kind of like the first because it seperates the elements of the date quite nicely I believe, even though the interaction between the elements (like dashes can sometimes imply) can be fun

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  7. #7
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by citizen View Post
    You've been asking a lot of questions about the time lately. If you don't mind my asking, does this have anything to do with your new time library?
    Real products that people use, yes...

    I dunno, one of these three.

    A nice dinner.Talking over several glasses of wine.Large amounts of sex
    A nice dinner/Talking over several glasses of wine/Large amounts of sex
    A nice dinner-Talking over several glasses of wine-Large amounts of sex

    I kind of like the first because it seperates the elements of the date quite nicely I believe, even though the interaction between the elements (like dashes can sometimes imply) can be fun
    ...But in part the reason we get what we get is because sometimes we make engineering decisions and just go with Iso8601 -- Europe and America be damned -- because focus groups suck.


    Or not.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  8. #8
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    DAY / MONTH / YEAR or:
    YEAR / MONTH / DAY
    It makes more sense to parse a date from the smallest unit to largest (or vice versa), but the hell with logic right? No, the American world is intent on doing things backwards. I commend America for its innovations, but if its one thing that really gets me is their die-hardness towards change. Its a constant daily struggle to have to parse a date 3 times over just to figure out what date it actually is (even worse when day, month, and year are all less than 12), not to mention having to constantly ask the expected format before writing the date on legal documents. I'm sure it will take the International Space Station blowing up from Imperial conversions before America decides to get with the program.

    And so no one thinks I'm being biased here, yes I am including Canada when I refer to "America". Infact sometimes Canada disappoints me even more, we can be so naive sometimes, pretending that we can establish standards outside of American influence, yet ask most Canadians how fast a bullet travels and they'll probably give you an answer in FPS.

  9. #9
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    It really depends on the usage.

    For things like giving the date after a signature I use mm/dd/yyyy
    For things that need to be absolutely clear: dd Month Spelt out yyyy

  10. #10
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by Thantos View Post
    It really depends on the usage.
    On a product you purchase that will display the date [as in calendar date] as you would prefer. Ex: cell phone, TV, microwave, whatever.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  11. #11
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    02/Mar/2004

    It is closest thing to how I spell it (never May 2, always 2nd of May - I mean in my native language) and I cannot be misinterpreted as 03-Feb
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  12. #12
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    I prefer any that are explicit, in addition to month, day, year, but only because that's how I verbally communicate the date: "The day in question is March the 2nd, 2004."

    2004-03-02 I don't mind, because it makes sense going from year to month to day. The opposite way is too ambiguous because of month, day, year.

  13. #13
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    It depends on the situation and where its used. For internet usage, such as on my site, it's the first 3 letters of the month name, the day number, then the 4-digit year. This prevents all date format conflicts. Locally, when writing dates, it's the MM/DD/YYYY format since there's almost no chance of a date conflict. For files that contain dates and must be sorted chronologically, I use the YYYYMMDD format. The separators also vary. For my site, it'd be "Mar 2, 2004" for that example date (or "Jun 4, 2007" for today's date in my area (it's close to midnight so that's about to change)). I'd use "03/02/2004" locally (or "06/04/2007"), and in file names, I'd use "20040302" (or "20070604") of which doesn't have spaces. Locally and in file names, I add leading zeros as needed. For other internet usage, there are no leading zeros added. I always use the 4-digit year in every case. For internet usage, it's the date format conflict issue that influenced me in doing it that way (also, SimCity 3000 played a role, giving the first 3 letters of the month). Because file names, when sorted in a directory listing, are alphabetical, the design I use lets me sort file names chronologically correctly. The influence for the other is the general format I see in my local area.
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  14. #14
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    My preferred date format is the group date
    My Website

    "Circular logic is good because it is."

  15. #15
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Quote Originally Posted by ulillillia View Post
    It depends on the situation and where its used. For internet usage, such as on my site, it's the first 3 letters of the month name, the day number, then the 4-digit year. This prevents all date format conflicts. Locally, when writing dates, it's the MM/DD/YYYY format since there's almost no chance of a date conflict. For files that contain dates and must be sorted chronologically, I use the YYYYMMDD format. The separators also vary. For my site, it'd be "Mar 2, 2004" for that example date (or "Jun 4, 2007" for today's date in my area (it's close to midnight so that's about to change)). I'd use "03/02/2004" locally (or "06/04/2007"), and in file names, I'd use "20040302" (or "20070604") of which doesn't have spaces. Locally and in file names, I add leading zeros as needed. For other internet usage, there are no leading zeros added. I always use the 4-digit year in every case. For internet usage, it's the date format conflict issue that influenced me in doing it that way (also, SimCity 3000 played a role, giving the first 3 letters of the month). Because file names, when sorted in a directory listing, are alphabetical, the design I use lets me sort file names chronologically correctly. The influence for the other is the general format I see in my local area.
    Understood -- although using paragraph separators does help.

    Been there, done that got the T-shirt.

    The question was aimed more toward a consumer of a product, which I thought I had at least alluded to, in regard to an individual's personal preference.

    I know what I like, I know what I prefer; I know my list is far from exhaustive. The question is more or less, "What Do You Prefer?"

    [edit]I know it's in there somewhere, although fairly well hidden.[/edit]
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Advancing day by day until it matches a second date
    By nhubred in forum C++ Programming
    Replies: 1
    Last Post: 05-30-2009, 08:55 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. OLE date and time format
    By pastitprogram in forum C++ Programming
    Replies: 7
    Last Post: 04-05-2008, 03:46 PM
  4. validating a date month and year format
    By bazzano in forum C Programming
    Replies: 3
    Last Post: 08-16-2005, 07:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21