Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by mwp (Hermit)
on Dec 15, 2000 at 04:10 UTC ( #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
Node Status?
node history
Node Type: note [id://46761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-01-17 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?