property HostContext.Date as Date
Specifies the date-time from the current cursor location.

TypeDescription
Date A Date expression that determines the date-time from the current cursor location.
The Date property returns a valid value, while the HitTest property includes the exHTValidDate. The exHTValidDate may occur while the cursor hovers the chart/tasks section of the control.

The following sample displays a message box with the date being clicked, once the user right-clicks the control:

Private Sub G2Host1_Context()
    With G2Host1
        If (.HostContext.HitTest And exHTValidDate) Then
            MsgBox .HostContext.Date
        End If
    End With
End Sub

The message box occurs only if clicking the chart section of the control.