Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How do i compare dates with format dd.mm.yy

by fuzzysteve (Beadle)
on Jan 18, 2002 at 18:23 UTC ( [id://139822]=note: print w/replies, xml ) Need Help??


in reply to How do i compare dates with format dd.mm.yy

It depends on how you want to compare them.

If you just want to check which is later, reverse the order of the parts, i.e. yy.mm.dd. (Make sure you keep all fields fixed width, i.e. zero padded if necessary.)

Then simply compare them as strings! However, you are likely to run into the "Y2K" problem, since your years are only two digits.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found