Do the formatting only at the moment you need to display a Date to a human as a String.
Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DAY_OF_MONTH, 10); Date date = calendar.getTime(); String formattedDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date); System.out.println(formattedDate);
Note that MM stands for months and mm for minutes. See also SimpleDateFormat javadoc.