I want to compare a date in a given period. I use the methods before and after. here is my method.
public boolean compareDatePeriod() throws ParseException
{
[.....]
if (period.getDateStart().after(dateLine)){
if (period.getDateEnd().before(dateLine)){
result = true;
}
}
;
return result;
}
if my dateLine = "01/01/2012" and my period.getDateStart () = "01/01/2012". I return false. I do not understand why?