Hello There,
I need help in comparing two time(s) and validate a selenium test in Java
My requirement is - Validate if a counter is present on my application between 1:00am to 2:00pm
I am able to get the below
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(“HH:mm:ss”);
sdf.format(cal.getTime())
but not sure how to proceed with comparing “sdf.format(cal.getTime())” with > or < specific time
@kristof @mirza
4 Likes