I have first time as string '12:00:00' and another '19:00:00'. How to check time portion of the day is within these time values?
Create calendar instances of the start and end times for the same day as your 'test' date. Then you can easily compare the calendar objects to determine if the current date is inside or outside the range.