Q:

Java : How to add date in to mysql database and get back

I need to add current date +7 day in to my sql database and retrieve it back how do i do that?
Calendar cal = Calendar.getInstance();
                        cal.add(Calendar.DATE, 7); // add 7 days  
                        int date = cal.get(Calendar.DATE);
                        int month = cal.get(Calendar.MONTH);
                        int year = cal.get(Calendar.YEAR);
                        String newdate = Integer.toString(date);
                        String concat = newdate.concat("-" + Integer.toString(cal.get(Calendar.MONTH)) + "-" + Integer.toString(cal.get(Calendar.YEAR)));

I found this code 
java.util.Date newDate = new Date(result.getDate("VALUEDATE").getTime());

A:

You can do that in MySQL directly
update your_table
set date_column = date_column + interval 7 day

Doc

