Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Matching Date

by kwaping (Priest)
on Oct 13, 2006 at 14:41 UTC ( [id://578147]=note: print w/replies, xml ) Need Help??


in reply to Re: Matching Date
in thread Matching Date

This is an alternate version of blazar's solution, which may be slightly easier for new Perl programmers (and possibly future maintenance programmers) to understand:
#my $date = "$mon/$mday/$year"; my $date = "10/13/2006"; my ($mon,$mday,$year) = split('/',$date); $mon = sprintf("%02d",$mon); $mday = sprintf("%02d",$mday); $date = "$mon/$mday/$year";
Also, I'd like to point the OP to Date::Calc and Date::Format.

---
It's all fine and dandy until someone has to look at the code.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found