diff --git a/include/otbDates.h b/include/otbDates.h
index 8ab3762e529f8e211527d0ddaf870dc3ae36f847..a94b0d7626e0870fc32157461b637a035b612a92 100644
--- a/include/otbDates.h
+++ b/include/otbDates.h
@@ -124,7 +124,7 @@ DatesType GetDatesFromStringVector(std::vector<std::string> & list, bool check_o
     {
       for (unsigned int i = 0 ; i < dates.size()-1 ; i++)
         {
-          if (dates[i+1].julianday <= dates[i].julianday)
+          if (dates[i+1].julianday < dates[i].julianday)
             {
               itkGenericExceptionMacro("Date " << i << " is older than date " << (i+1) << " !");
             }