How to use SDF to display a future date.
When I run this the first date displays correctly (without the time of day),
but I can't figure out how to call the + 14 days date using SDF.
I just left a ? in place to show where my problem is.
Corrected:
Calendar cal = Calendar.getInstance();
SimpleDateFormat ord = new SimpleDateFormat(“MMM dd, yyyy”):
cal.add(Calendar.DATE, +14);
SimpleDateFormat arr = newSimpleDateFormat(“MMM dd, yyyy”):
System.out.println(“Date of Order: “ + ord.format(cal.getTime));
System.out.println("ArrivalDate: " + arr.format(cal.getTime) );