Compare two Timestamp in java April 27, 2023 by Tarik if(mytime.after(fromtime) && mytime.before(totime)) //mytime is in between