Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(Date::Manip) Re: sorting mm/dd/yy

by mwp (Hermit)
on Dec 15, 2000 at 04:10 UTC ( [id://46761]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Date::Manip qw(ParseDate Date_Cmp);
    
    sub sortDate {
    ...
                 "Thu 15 Aug 96");
    
    my @i = sort &sortDate @dates;
    
  2. or download this
    my @i = sort { 
                &Date_Cmp(&ParseDate($a),&ParseDate($b)) 
            } @dates;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found