Home » Java » Check between two datetime if passed in Java/Android

Check between two datetime if passed in Java/Android

Posted by: admin July 12, 2018 Leave a comment

Questions:

I have two date time string, one is current time and second is given as follows.

String currentTime = "05/30/2018 16:56:21";
String endTime = "05/30/2018 16:59:21";

Now I want to check if the endTime has passed currentTime.

Thanks

Answers: