import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
String input = "2021-02-05";
LocalDate date = LocalDate.parse(input, formatter);
import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
String input = "2021-02-05 13:07:35";
LocalDateTime datetime = LocalDateTime.parse(input, formatter);
import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
String input = "13:07:35";
LocalTime time = LocalTime.parse(input, formatter);
String dtStart = "11/08/2013 08:48:10";
SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
try {
date = format.parse(dtStart);
System.out.println("Date ->" + date);
} catch (ParseException e) {
e.printStackTrace();
}
try {
Date now = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
format.setTimeZone(TimeZone.getTimeZone("UTC"));
Date past = format.parse("2016-01-24T16:00:00.000Z");
DebugTool.logD("TIMEEE " + now.getTime());
DebugTool.logD("TIMEEE PAST" + past.getTime());
} catch (ParseException e) {
e.printStackTrace();
}