compare dates...

hi all :slight_smile:
how can in compare yyyy/dd/mm with yyyy/dd/mm in perl i want the result like grater than or less than the given date...
thanks in advance

Please read this article: You will able to find answer for your question.

FAQBasicUsage - Perl DateTime Wiki

Sanjay Tripathi

The module DateTime is not part of standard packages.

Another alternative is to convert the dates to UNIX format (number of seconds elapsed since epoch) using time function, and then compare them. Check the documentation of time and localtime functions.

:cool:GOT THE SOLUTION JUST REMOVE "/" FROM THE DATES AND "YYYYMMDD" IS NOW A SIMPLE NUMBER YOU CAN COMPARE IT WITH ANY OTHER NUMBER IN THAT FORMAT:):smiley: