Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Answer: How do I Compare Dates

( #19887=categorized answer: print w/ replies, xml ) Need Help??

Q&A > dates and times > How do I Compare Dates contributed by httptech

Date::Manip is particularly good at this. Look at the DateCalc() method.

Alternatively, since you're getting the values from a database, see if you can get it to return the values in the format yyyy-mm-dd; then a simple string comparison will do. Or - heck - get it in nnnnnnnnn format, a number representing seconds since the epoch. Then a simple numeric comparison will do!

Comment on Answer: How do I Compare Dates
Select or Download Code
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-11-25 21:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (691 votes), past polls