Hi Thank you for reading my post I have an xml file which has some node showing time ranges. I should check this time ranges and compare the current time with stored time ranges, if current time is within those time range, I need to perform some actions.
How are the time ranges stored? As a begin date/time and end/date time?
If so, convert them to a Date object using java.text.DateFormat and/or java.textSimpleDateFormat, create a new Date object without parameters (new Date() will give a Date object for the current moment) and use their compareTo methods.