I have a code that looks like this:
Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2013-06-03 00:00:00");
System.out.println(date);
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Calendar cal = Calendar.getInstance();
System.out.println("Current Date Time : " + dateFormat.format(cal.getTime()));
it outputs: Mon Jun 03 00:00:00 EDT 2013 Current Date Time : 2013-06-24 12:52:04
I want to change the first date printed in first line to look like the second date printed in second line. how can I do this? thanks in advance.