I have an input field, where i can select the date from date picker.Based on this selected value i need to get the 30 days back date.
Thanks in advance.
I have an input field, where i can select the date from date picker.Based on this selected value i need to get the 30 days back date.
Thanks in advance.
Calendar cal = Calendar.getInstance();
cale.add(Calendar.DATE, -30);
System.out.println("Date = " + cal.getTime());