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

Answer: How do I Compare Dates

by httptech (Chaplain)
on Jun 26, 2000 at 21:51 UTC ( #19887=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > How do I Compare Dates - Answer 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-03-30 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (362 votes). Check out past polls.