Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: sorting mm/dd/yy

by Anonymous Monk
on Dec 15, 2000 at 19:42 UTC ( #46825=note: print w/replies, xml ) Need Help??


in reply to sorting mm/dd/yy

Store them internally as YYMMDD and use a straight numeric sort.

Replies are listed 'Best First'.
Re: Re: sorting mm/dd/yy
by neophyte (Curate) on Dec 15, 2000 at 19:51 UTC
    Just one more thing: Please use a four digit year (YYYY) to avoid any ambiguities.
Re: Re: sorting mm/dd/yy
by davorg (Chancellor) on Dec 15, 2000 at 19:51 UTC

    If you're dealing with data more than 12 months old, then it might be better to use YYYYMMDD.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://46825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2021-01-17 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?