I am doing up a script where by the user will pass in string date (MM/DD/YYYY). I want to compare this string date to the "today" date to find out the days different between these 2 days.
This is my codes to get "today" date.
DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
Calendar cal = Calendar.getInstance();
returnDate = dateFormat.format(cal.getTime());
How do i go about using date to minus date? convert them to timestamp and convert it back?
Thank you