We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

organising things in date order on PC

2»

Comments

  • Sooler
    Sooler Posts: 3,115 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    Use YYYY-MM-DD

    "A summary of the international standard date and time notation by Markus Kuhn


    International Standard ISO 8601 specifies numeric representations of date and time.
    This standard notation helps to avoid confusion in international communication caused by the many different national notations and increases the portability of computer user interfaces.
    In addition, these formats have several important advantages for computer usage compared to other traditional date and time notations.
    The time notation described here is already the de-facto standard in almost all countries and the date notation is becoming increasingly popular."


    See
    http://www.cl.cam.ac.uk/~mgk25/iso-time.html
  • Strider590
    Strider590 Posts: 11,874 Forumite
    the best way to sort chronologically is to use YYYYMMDDHHMMSS...

    every sort there is gets it right without knowing they are dates.


    This is the best way, it's also good practice to avoid using spaces in file names and don't use fullstops inside the file name, use - or _ instead.

    I had an argument about this at a previous employer when my manager insisted we should use the format (example) "22nd of May 2014" for file names, which resulted in right mess and made automatic data extraction almost impossible. The guy was an arrogant imbecile.
    You'd basically have all the 22nd of every month and every year bunched together, followed by the 23rd, it was ridiculous and sooooo hard to find the files you needed.

    But hey I don't work there anymore and they can all stew in the mess they made for themselves.
    “I may not agree with you, but I will defend to the death your right to make an a** of yourself.”

    <><><><><><><><><<><><><><><><><><><><><><> Don't forget to like and subscribe \/ \/ \/
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Strider590 wrote: »
    ... it's also good practice to avoid using spaces in file names and don't use fullstops inside the file name, use - or _ instead.

    Really? Why would that be?

    It's pretty easy to use quotation marks, or to use the escape character before a space.

    Are there other reasons that make it "good practice"?
  • debitcardmayhem
    debitcardmayhem Posts: 13,569 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    edited 4 November 2016 at 8:30PM
    esuhl wrote: »
    Really? Why would that be?

    It's pretty easy to use quotation marks, or to use the escape character before a space.

    Are there other reasons that make it "good practice"?
    regular expressions, full stop = 1 character , which escape character do you use \ ie in unix oh but that's delimiter for a directory in windows, also try making sense of """^^!!"^'" "\" oh and the wonderful windows hide extensions of known filetypes eg "file.txt.exe.jpg.docx\ pdf"
    4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy

    CEC Email energyclub@moneysavingexpert.com
  • Strider590
    Strider590 Posts: 11,874 Forumite
    esuhl wrote: »
    Really? Why would that be?

    It's pretty easy to use quotation marks, or to use the escape character before a space.

    Are there other reasons that make it "good practice"?


    To explain spaces, don't use them because if you ever hyperlink to that file the space will get converted to %20 (url encoding), which can cause issues depending on what your trying to do.

    It's always best to use safe file names to ensure maximum future comparability.
    “I may not agree with you, but I will defend to the death your right to make an a** of yourself.”

    <><><><><><><><><<><><><><><><><><><><><><> Don't forget to like and subscribe \/ \/ \/
  • getmore4less
    getmore4less Posts: 46,882 Forumite
    Part of the Furniture 10,000 Posts Name Dropper I've helped Parliament
    edited 5 November 2016 at 8:01AM
    The great thing about YYYYMM... (without any delimiter) is it works everywhere(as long as you keep them the same significance and don't mix say date only with date and time).

    it works on directories (any platform) files(any platform) fields(any file format )

    great your excel can sort a date but dump it to a CSV and you are stuffed.

    Us oldies brought up on command lines realise the importance of sort and having good fields to sort on.

    if you must delimit then "-" and "_" are probably best but they will mess up in some cases.
  • I remember an article in one of the Sinclair magazines so many years ago, early 1980s, :-), where it was stated the only way to insert dates to get them in chronological order was yyyymmddhhss. I do think it was for my Speccy 2 or 3 which I was using for Open University at the time. Course, then there wasn't "Office" as such, it was a "Word" type program and a very basic spreadsheet.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 354K Banking & Borrowing
  • 254.3K Reduce Debt & Boost Income
  • 455.2K Spending & Discounts
  • 247K Work, Benefits & Business
  • 603.6K Mortgages, Homes & Bills
  • 178.3K Life & Family
  • 261.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.