in reply to Coolest way to decode YYYYMMDD?

Which would be coolest?

A solution in:


If you didn't program your executable by toggling in binary, it wasn't really programming!

Replies are listed 'Best First'.
Re^2: Coolest way to decode YYYYMMDD?
by BrowserUk (Patriarch) on Jun 03, 2013 at 20:09 UTC

    The coolest way would be to not decode it at all.

    The great benefit of that format is that for 90% of uses -- sorting; comparing; matching; inclusion & exclusion -- you don't have to waste bazillions of cycles constructing O'WoE, heavyweight objects that lie, you just use them as strings and it all works out.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.