Im having a problem trying to convert the following type of data into Date.I'm new to Java and struggling with it. I want to use the following date data for the comparator to compare dates. Some examples or tips would be lovely! I would be happy to hear from you!
"2018-10-02T15:17:35"
int sortWithDate = fromDate.compareTo(fromDate2);
if (sortWithDate != 0) {
return sortWithDate * -1;
}