I need to check whether current time is between 8 AM and 3 PM or not. If it is between those time range, then I need to return yes otherwise return false.
boolea
Using Date for the current time is fine. There's a few ways you can go about it.
1. System.currentTimeInMillis() 2. Date today = new Date()