I have a problem resetting hours in Java. For a given date I want to set the hours to 00:00:00.
This is my code :
/** * Resets milliseconds, se
You can either do this with the following:
Calendar cal = Calendar.getInstance(); cal.set(year, month, dayOfMonth, 0, 0, 0); Date date = cal.getTime();