Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static final long day = 1000 * 60 * 60 * 24;
- Date date = new Date();
- long current = date.getTime();
- current = current - (current % day) - TimeZone.getDefault().getRawOffset();
- System.out.println(new Date(current));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement