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

I have in the process of updating my filing system on my cloudbased storage and PC and want to organise things chronologically.
However, if I have the dates
1.11.13
6.8.16
5.4.11
2013 comes before the 2011 date which comes before the 2016 date.
I have thought about doing it backwards
eg
2011.4.5
2013.11.1
2016.8.6
Is there a way of doing it so you just put the date in normally and the computer recognises it as a date rather than a number and it comes out in order?
«1

Comments

  • getmore4less
    getmore4less Posts: 46,882 Forumite
    Part of the Furniture 10,000 Posts Name Dropper I've helped Parliament
    the best way to sort chronologically is to use YYYYMMDDHHMMSS...

    every sort there is gets it right without knowing they are dates.
  • JuneBow
    JuneBow Posts: 302 Forumite
    the best way to sort chronologically is to use YYYYMMDDHHMMSS...

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

    This "backwards" solution is the only one I have managed to come up with, but I was hoping I could do it the right way around.

    Thanks for the reply.
  • droopsnoot
    droopsnoot Posts: 1,907 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    It all depends - are these file names, or folder names, or something else entirely? In a database, if you entered those values into a string field you'd get the same result, but if you entered them (in a valid format) into a date field, then it would be capable of sorting in "proper" date order.


    If you're using these as filenames, then it's not going to work properly, but can't you sort the folder listings by "last modified date" and have that work for you?


    With apologies if these aren't filenames and you meant something entirely different. The system will only deal with these things as dates if it knows they are dates, basically.
  • agrinnall
    agrinnall Posts: 23,344 Forumite
    10,000 Posts Combo Breaker
    To my mind from a data perspective YYYYMMDDSS is the correct way round, anything else is fundamentally flawed. I have been using dates in this way for over 35 years, and I'm constantly annoyed by people who don't do it and don't seem to get why it is the sensible option.
  • Hi,

    have you tried, select cells, then click, Format > Cells > Date, then select style you want, and then use the sort AZ or ZA arrows.
  • Le_Kirk
    Le_Kirk Posts: 26,096 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    That will work in Excel but I assume the OP is talking something else, like file/folder if they are mentioning Cloud based storage.
  • AndyPix
    AndyPix Posts: 4,847 Forumite
    Fifth Anniversary 1,000 Posts Name Dropper Photogenic
    JuneBow wrote: »
    Is there a way of doing it so you just put the date in normally and the computer recognises it as a date rather than a number and it comes out in order?


    No, unfortunately not.
    The computer is ordering them alphabetically , and in that sense, numbers come before the start of the alphabet.
    That is why your 1.11.13 is coming first, as it starts with 1 etc etc
  • John_Gray
    John_Gray Posts: 5,847 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    AndyPix wrote: »
    The computer is ordering them alphabetically , and in that sense, numbers come before the start of the alphabet.
    To be really pedantic, the order is of the ASCII collating sequence, where numbers precede UPPER-CASE characters, which precede lower-case characters.
    As for special characters, good luck!
  • cookie365
    cookie365 Posts: 1,809 Forumite
    If you use Directory Opus someone has created a button that will sort filenames in dd-mm-yyyy format

    https://resource.dopus.com/viewtopic.php?f=18&t=20368&p=109302&hilit=filename+date+sort#p109302
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    agrinnall wrote: »
    To my mind from a data perspective YYYYMMDDSS is the correct way round, anything else is fundamentally flawed. I have been using dates in this way for over 35 years, and I'm constantly annoyed by people who don't do it and don't seem to get why it is the sensible option.

    Ha ha! I know -- "normal" numbers have the most significant digit on the left, why don't dates?

    The Americans tried to fix this with their mm/dd notation, but then they put the year at the end and it looks like they've just shoved the numbers in random order! So close, yet so far! :p
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
  • 353.9K Banking & Borrowing
  • 254.3K Reduce Debt & Boost Income
  • 455.2K Spending & Discounts
  • 246.9K Work, Benefits & Business
  • 603.5K Mortgages, Homes & Bills
  • 178.3K Life & Family
  • 261K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K 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.