Do you know where your variables are? | |
PerlMonks |
Re: How do i compare dates with format dd.mm.yyby fuzzysteve (Beadle) |
on Jan 18, 2002 at 18:23 UTC ( [id://139822]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|