Just another Perl shrine | |
PerlMonks |
Re: How do I Compare Datesby davorg (Chancellor) |
on Jun 27, 2000 at 15:17 UTC ( [id://19980]=note: print w/replies, xml ) | Need Help?? |
Rather than getting the current date using `date`, why not use POSIX::strftime to get it in YYYY-MM-DD format. You can then use standard string comparison operators on the two dates.
Date::Manip is probably overkill for this task (in fact it's probably overkill for most tasks.) Originally posted as a Categorized Answer.
In Section
Seekers of Perl Wisdom
|
|