Why cannot I clear the time from a timestamp this way:
one day == 24 * 3600 * 1000 == 86400000 milliseconds. long ms = new Date().getTime(); //Mon Sep 03 10:06
Try this...
Calendar c = Calendar.getInstance(); DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT); String strDate = df.format(c.getTime()));
Now this way you can have the another date, and then compare it....as they are now in String format.