Determine If The Current Time Falls Within a Range
Category:Dates and Math
Version Compatibility: Visual Basic 6
This code is useful if you need to determine if the current time falls between two other times, and then execute some code or processes based on the results. This implements a user-defined function named InRange().
Instructions: Copy the declarations and code below and paste directly into your VB project.