Specifies whether the given date is within the session time period.
Visual Basic |
---|
Public Function IsTimeInSession( _ ByVal date_time As Date, _ Optional ByVal use_session_valid_times As Boolean = False _ ) As Boolean |
- date_time
- The date to be checked, in user-configured time zone, represented as Date
- use_session_valid_times
This is an optional flag identifying whether the official or valid session times should be used.
- if True, the valid start and end times will be used.
- if False, the official start and end times will be used.
True if the given date is within the session, False otherwise