SimpleDateFormat sdf = new SimpleDateFormat();sdf.applyPattern("yyyy-mm-dd");Date fromDateConstraint = sdf.parse(fromDate);
I can see that the time for same date the OOTB search is using and the one that I am getting after converting the same date is different.
However I still have a question on why search converts the date to number at UI but uses different number representation of date when firing the actual query.