SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Date formats...

  1. #1
    SitePoint Zealot
    Join Date
    Feb 2000
    Location
    MI
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am looking for the most common ways to display a date. So far I have four (unless you take into account using am/pm or European style time):

    <OL TYPE=1><LI> mm/dd/yy hh:mm
    <LI> Month dd, yyyy hh:mm
    <LI> dd Month yyyy hh:mm
    <LI> yy/mm/dd hh:mm
    </OL>

    Thanks.

    Richard


    ------------------
    richard@brevig.com

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm from the US of A...just wanted to note that.

    To me it seems like the #2 one would be the easiest. Whenever I see 6/4/83 17:34 for example, I have to think about two things: the month corresponding to the number and the year. Now with the new millenium and the new '20' instead of '19' people have to do even more translation in their head.

    Just a thought..

  3. #3
    mouse monkey
    Join Date
    Dec 1999
    Location
    UK
    Posts
    656
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I'm from England and I agree with Quinn that #2 is the best. This is mainly because you write the full month. In Europe we write the date dd/mm/yy and it can become very confusing when you see the month written in the US format (mm/dd/yy)

    Just my 0.02

    Fletch

    [This message has been edited by adamfletch (edited July 28, 2000).]

  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For a lot of things now I display the date YYYY-MM-DD HH:NN:SS which I believe is one of the ISO standards. It seems logical to me to go from largest to smallest (Years -&gt; Seconds)

    ------------------
    Karl Austin
    KDA Web Services
    "Everyone has a photographic memory. Some just don't have film."

  5. #5
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    Vilnius, Lithuania
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In Lithuania (and I think in some other places in europe) we write like yyyy mm dd or yyyy.mm.dd. In Russia they write like dd.mm.yyyy.

    So if you can write the month name just do it. It's easier for everyone cause it doesn't leave a chance for missunderstanding.

    ------------------
    Alan Mendelevich aka ailon
    ArticleCentral.com - The content directory for web professionals.
    MEGOPhotos - Quality photos for FREE. UPDATED

  6. #6
    SitePoint Zealot
    Join Date
    Feb 2000
    Location
    MI
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank for your replies on the subject. I think I may just use #2. However, my initial intent was going to be to let the user choose. Anyone who would see this date would have to be logged in, and thus I could use their local country format as they chose. The dates would be used for something on the lines of a message board; so it woudl be something that they would be looking at a lot.

    Also, I have since found something interesting on formating dates: The ISO8601 standard. You can fidn more information at:

    http://www.magnet.ch/serendipity/her...ud/formats.htm

    Should I let the user choose the format, or just use something generic like #2?

    Thanks again.

    Richard

    ------------------
    richard@brevig.com

  7. #7
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I personally like to use DD-MONTH-YYYY or Month dd, YYYY. This is how most databases display the date by default and I figure if it is readable why mess with it.



    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Magazine - MetaQuark Creations (Coming Soon)
    sitepoint@digitalmagician.com

  8. #8
    SitePoint Zealot
    Join Date
    Feb 2000
    Location
    MI
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your replies. I think I will offer just a few ways for display for my users to choose from.

    Richard

    ------------------
    richard@brevig.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •