I wrote the following method to get the current date for an invoice:
public String getDate()
{
DateFormat dateFormat = new SimpleDateFormat("MMMMMMMMM d, yyyy");
Date orderDate = new Date();
return dateFormat.format(orderDate);
}
but now I have to add two weeks (14 days) to that date (to get the expected delivery date). I've come across ways to do the same thing with a date acquired using Calendar. I tried changing my method to use Calendar instead but had issues. Is there a way to add 14 days to this date without re-doing my method? If not how would I write the method using Calendar? Thanks in advance for the help!