List of utility methods to do Date Clone
Date | clone(final Date date) Clone date if non-null if (date == null) return null; return new Date(date.getTime()); |
Date | copyTime(Date originalDate, Date appliedDate) Saves date in originalDate, but applies time from appliedDate. Date date = new Date(originalDate.getTime()); date.setHours(appliedDate.getHours()); date.setMinutes(appliedDate.getMinutes()); date.setSeconds(appliedDate.getSeconds()); return date; |