Public Function DateValue(ByVal DateTime As Date) As Date
Returns the date part of a date/time value (thus removes the time component).
Dim lLastLoginDateTime As Date = pContext.DataSet("LastLoginDateTime").Value
SendDebug $"You logged in the last time on {DateValue(lLastLoginDateTime)} at {TimeValue(lLastLoginDateTime)}"