I have huge Problems getting the Date without time, i want to set the time to 00:00 so i can check date differences.
My steps so far trying:
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
Date now = new Date();
try {
now = dateFormat.parse(dateFormat.format(now));
} catch (ParseException e1) {
//
}
This code still takes the time, i took this similar code from this question here How do I get a Date without time in Java? answered by Shobbi
I had a better result before but the time was still set to 01:00. Anyone has a better solution for me? I need to compare Date from SQLite Database with the Actual day.
Bear in mind that CN1 Datelibs are based on JDK1.3, so im limited using methods