Use java.util.Calendar :
Calendar cal = Calendar.getInstance();
cal.set(Calendar.HOUR_OF_DAY, 23);
cal.set(Calendar.MINUTE, 59);
cal.set(Calendar.SECOND, 59);
cal.set(Calendar.MILLISECOND, 999);
Date date = cal.getTime();
I think you might be approaching this from a slightly wrong angle. Instead of trying to create an instance of Date that is one atom before midnight, a better approach would be to create a date representing midnight and check if the current time is strictly less. I believe this will be a little clearer in terms of your intentions for someone else to read the code too.
API- , , . API- Java, , . , / , Joda Time . , Joda Time DateMidnight, "" , , (, ).