Determine If The Current Time Falls Within a Range

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
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.

Declarations:

Code: